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 chacha20poly1305 wycheproof tests #4345

Merged
merged 3 commits into from Jul 17, 2018
Merged

Conversation

reaperhulk
Copy link
Member

refs #3331

@alex
Copy link
Member

alex commented Jul 17, 2018

flake8

assert computed_ct == ct + tag
computed_msg = chacha.decrypt(iv, ct + tag, aad)
assert computed_msg == msg
elif not wycheproof.valid and len(iv) != 12:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop the not wycheproof.valid, that's always the case after hte first if

@alex alex merged commit 7ca0e46 into pyca:master Jul 17, 2018
@reaperhulk reaperhulk deleted the wycheproof-chacha branch July 17, 2018 14:42
amauryfa pushed a commit to amauryfa/cryptography that referenced this pull request Jul 22, 2018
* add chacha20poly1305 wycheproof tests

* flake8

* review
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants