Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AES-CCM enforce max length #779

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

solney
Copy link

@solney solney commented Nov 8, 2023

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.

@solney
Copy link
Author

solney commented Nov 8, 2023

Just looking into the python2 failures now

@solney solney force-pushed the aes-ccm-max-length branch from 12f9de0 to 10f21ff Compare November 8, 2023 16:32
@solney
Copy link
Author

solney commented Nov 8, 2023

Just looking into the python2 failures now

Fixed now, need bytearray instead of bytes in new test

@solney solney marked this pull request as ready for review November 8, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant