pycryptodome
pycryptodome copied to clipboard
AES-CCM enforce max length
NIST Special Publication 800-38C Appendix 1 states that the maximum length of payload is determined by the value of q (which in turn is related to the length of the nonce).
It seems as if this condition wasn't previously enforced which could lead to the block b0 exceeding 16 bytes.
Just looking into the python2 failures now
Just looking into the python2 failures now
Fixed now, need bytearray instead of bytes in new test
Thanks, but this was fixed in a more generic way in v3.22