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

Use AAD as input of Chacha20Poly1305.encrypt() #146

Closed
cygnusv opened this issue Jul 20, 2023 · 0 comments · Fixed by #149
Closed

Use AAD as input of Chacha20Poly1305.encrypt() #146

cygnusv opened this issue Jul 20, 2023 · 0 comments · Fixed by #149
Labels

Comments

@cygnusv
Copy link
Member

cygnusv commented Jul 20, 2023

We're currently relying on validating the AAD as part of the TPKE public verifiability function, but not as part of Chacha20Poly1305's properties as an AEAD cipher. That is, as a defense in depth measure, we could include the AAD as input when encrypting & decrypting with Chacha20Poly1305.

See https://docs.rs/aead/0.5.1/aead/struct.Payload.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant