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

Are authentication tags validated? #170

Open
nishils opened this issue Apr 20, 2023 · 2 comments
Open

Are authentication tags validated? #170

nishils opened this issue Apr 20, 2023 · 2 comments
Labels
bug Something isn't working triage:needs-expert

Comments

@nishils
Copy link

nishils commented Apr 20, 2023

Hi there,

I can't get authentication tags to validate when using chacha20-poly1305. Decryption works just fine but when I purposefully mangle the authentication tag or the additional authenticated data (aad), it decrypts just fine.

Is there a specific order to run setAAD, update, and setAuthTag or some way to detect this failure mode?

This could be a bug or just user error. Unsure at this point!

Thanks!

@MahmoudNafiseh
Copy link

Did you get an answer for this?

@nishils
Copy link
Author

nishils commented May 2, 2023

@MahmoudNafiseh nope. As far as I can tell, they are not validated and can't find a way to get them validated.

@Montchy Montchy added bug Something isn't working triage:needs-expert labels Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage:needs-expert
Projects
None yet
Development

No branches or pull requests

3 participants