mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 07:43:26 +00:00
Address PR comments
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user