mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-04-08 19:25:06 +02:00
Address PR comments
This commit is contained in:
parent
26c1c71fff
commit
fdf52a541a
@ -493,7 +493,7 @@ class CryptographyEngine(api.CryptographicEngine):
|
||||
iv_nonce = os.urandom(algorithm.block_size // 8)
|
||||
return_iv_nonce = True
|
||||
if is_gcm_mode:
|
||||
mode = mode(iv_nonce, None, auth_tag_length)
|
||||
mode = mode(iv_nonce, None, min_tag_length=auth_tag_length)
|
||||
else:
|
||||
mode = mode(iv_nonce)
|
||||
else:
|
||||
@ -835,7 +835,7 @@ class CryptographyEngine(api.CryptographicEngine):
|
||||
"IV/nonce is required."
|
||||
)
|
||||
if is_gcm_mode:
|
||||
mode = mode(iv_nonce, auth_tag)
|
||||
mode = mode(iv_nonce, tag=auth_tag)
|
||||
else:
|
||||
mode = mode(iv_nonce)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user