Some bad assumptions were made during the creation of our Python AES GCM
code. This is now modified to be more in-line with other libraries. This
is an API breaking change on unreleased code.
This now allows for aad data to be used, varying length of
authentication tags and fixes a bug for multipart.
Now unified to a single class AesGcmStream()
Used encrypt() and decrypt() instead of update() to avoid
confusion over encryption and aad semantics
final tag_bytes is configurable in the constructor
set_aad() added to add the aad data
aad data is cleared after first encrypt() or decrypt() call due
to quirk in the C API.
Some bad assumptions were made during the creation of our Python AES GCM code. This is now modified to be more in-line with other libraries. This is an API breaking change on unreleased code.
This now allows for aad data to be used, varying length of authentication tags and fixes a bug for multipart.
encrypt()
anddecrypt()
instead ofupdate()
to avoid confusion over encryption and aad semanticsset_aad()
added to add the aad dataencrypt()
ordecrypt()
call due to quirk in the C API.