mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-20 04:24:23 +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)
|
iv_nonce = os.urandom(algorithm.block_size // 8)
|
||||||
return_iv_nonce = True
|
return_iv_nonce = True
|
||||||
if is_gcm_mode:
|
if is_gcm_mode:
|
||||||
mode = mode(iv_nonce, None, auth_tag_length)
|
mode = mode(iv_nonce, None, min_tag_length=auth_tag_length)
|
||||||
else:
|
else:
|
||||||
mode = mode(iv_nonce)
|
mode = mode(iv_nonce)
|
||||||
else:
|
else:
|
||||||
@ -835,7 +835,7 @@ class CryptographyEngine(api.CryptographicEngine):
|
|||||||
"IV/nonce is required."
|
"IV/nonce is required."
|
||||||
)
|
)
|
||||||
if is_gcm_mode:
|
if is_gcm_mode:
|
||||||
mode = mode(iv_nonce, auth_tag)
|
mode = mode(iv_nonce, tag=auth_tag)
|
||||||
else:
|
else:
|
||||||
mode = mode(iv_nonce)
|
mode = mode(iv_nonce)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user