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

Add flag to AES CCM testvectors for invalid tag size #61

Open
alex opened this issue Aug 1, 2018 · 2 comments
Open

Add flag to AES CCM testvectors for invalid tag size #61

alex opened this issue Aug 1, 2018 · 2 comments

Comments

@alex
Copy link
Contributor

alex commented Aug 1, 2018

Right now the way to programatically detect these tests is to look at the comment key. It'd be great if there were a flag for this.

@bleichen
Copy link
Contributor

bleichen commented Aug 2, 2018

I'll add flags.
Since the size of the flags and the size of nonce is encoded using 3 bits each in the block B0
encryption with invalid values is essentially undefined.

@alex
Copy link
Contributor Author

alex commented Aug 2, 2018

For what it's worth, the reason this is desired by us is that we use a different error type for bad nonce length than we do for other failures, since bad nonce length is generally a programming bug, as opposed to bad data.

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

No branches or pull requests

2 participants