@@ -288,8 +288,7 @@ def do_rsaes_pkcs_signature(key_binary_p, input_binary_p,
288288 # Every crypto binding ignores its first argument, which is an option
289289 # mongocrypt_ctx_t object and is not required to use crypto hooks.
290290 def set_crypto_hooks
291- @aes_encrypt = proc do |_ , key_binary_p , iv_binary_p , input_binary_p ,
292- output_binary_p , response_length_p , status_p |
291+ @aes_encrypt = proc do |_ , key_binary_p , iv_binary_p , input_binary_p , output_binary_p , response_length_p , status_p |
293292 do_aes (
294293 key_binary_p ,
295294 iv_binary_p ,
@@ -300,8 +299,7 @@ def set_crypto_hooks
300299 )
301300 end
302301
303- @aes_decrypt = proc do |_ , key_binary_p , iv_binary_p , input_binary_p ,
304- output_binary_p , response_length_p , status_p |
302+ @aes_decrypt = proc do |_ , key_binary_p , iv_binary_p , input_binary_p , output_binary_p , response_length_p , status_p |
305303 do_aes (
306304 key_binary_p ,
307305 iv_binary_p ,
@@ -319,13 +317,11 @@ def set_crypto_hooks
319317 end
320318 end
321319
322- @hmac_sha_512 = proc do |_ , key_binary_p , input_binary_p ,
323- output_binary_p , status_p |
320+ @hmac_sha_512 = proc do |_ , key_binary_p , input_binary_p , output_binary_p , status_p |
324321 do_hmac_sha ( 'SHA512' , key_binary_p , input_binary_p , output_binary_p , status_p )
325322 end
326323
327- @hmac_sha_256 = proc do |_ , key_binary_p , input_binary_p ,
328- output_binary_p , status_p |
324+ @hmac_sha_256 = proc do |_ , key_binary_p , input_binary_p , output_binary_p , status_p |
329325 do_hmac_sha ( 'SHA256' , key_binary_p , input_binary_p , output_binary_p , status_p )
330326 end
331327
@@ -347,8 +343,7 @@ def set_crypto_hooks
347343 @hmac_hash
348344 )
349345
350- @aes_ctr_encrypt = proc do |_ , key_binary_p , iv_binary_p , input_binary_p ,
351- output_binary_p , response_length_p , status_p |
346+ @aes_ctr_encrypt = proc do |_ , key_binary_p , iv_binary_p , input_binary_p , output_binary_p , response_length_p , status_p |
352347 do_aes (
353348 key_binary_p ,
354349 iv_binary_p ,
@@ -360,8 +355,7 @@ def set_crypto_hooks
360355 )
361356 end
362357
363- @aes_ctr_decrypt = proc do |_ , key_binary_p , iv_binary_p , input_binary_p ,
364- output_binary_p , response_length_p , status_p |
358+ @aes_ctr_decrypt = proc do |_ , key_binary_p , iv_binary_p , input_binary_p , output_binary_p , response_length_p , status_p |
365359 do_aes (
366360 key_binary_p ,
367361 iv_binary_p ,
@@ -380,8 +374,7 @@ def set_crypto_hooks
380374 @aes_ctr_decrypt
381375 )
382376
383- @rsaes_pkcs_signature_cb = proc do |_ , key_binary_p , input_binary_p ,
384- output_binary_p , status_p |
377+ @rsaes_pkcs_signature_cb = proc do |_ , key_binary_p , input_binary_p , output_binary_p , status_p |
385378 do_rsaes_pkcs_signature ( key_binary_p , input_binary_p , output_binary_p , status_p )
386379 end
387380
0 commit comments