2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-15 15:53:36 +00:00

Address PR comments

This commit is contained in:
oleksiys
2019-08-13 23:29:58 -07:00
committed by Peter Hamilton
parent fdf52a541a
commit ead6c431bc
2 changed files with 47 additions and 15 deletions

View File

@@ -835,7 +835,11 @@ class CryptographyEngine(api.CryptographicEngine):
"IV/nonce is required."
)
if is_gcm_mode:
mode = mode(iv_nonce, tag=auth_tag)
mode = mode(
iv_nonce,
tag=auth_tag,
min_tag_length=len(auth_tag)
)
else:
mode = mode(iv_nonce)
else: