Closed skelsec closed 1 year ago
Thank you for reporting! Looking at the code and my tests, I apparently thought it was dumb to encrypt nothing (0-length string) and strictly forbidding it would make my life with pointers slightly easier. Of course, that's not correct. 😅
Fix is coming.
Hi! The fix has just been released with 2.6.1.
NOTE: Please use stackoverflow for support questions. This repository's issues are reserved for feature requests and bug reports.
I am submitting a …
Description
AES GCM 128 and 256 fails TAG test vector.
AES GCM 128 test vector:
AES256 GCM test vector:
Current behavior
When trying to perform
encryption
with the above test vectors, the module produces the following error:Also note that the error message specifies
DECRYPTION
but it's anencryption
operation.Expected behavior
Passing the test :)
Steps to reproduce
pip install python-mbedtls
Minimal demo of the problem
Other information
This test passes on
cryptography
pycryptodome
pycryptodomex
andpyaes
modules.