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

Panic when using above min. lenght slices in seal()/open() #52

Closed
brycx opened this issue Jan 26, 2019 · 1 comment
Closed

Panic when using above min. lenght slices in seal()/open() #52

brycx opened this issue Jan 26, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@brycx
Copy link
Member

brycx commented Jan 26, 2019

Calling hazardous::aead::chacha20poly1305::seal() and hazardous::aead::xchacha20poly1305::seal() with an out parameter, that has a length above that of plaintext + size_of_poly1305_tag, will result in a panic. This is because when appending the Poly1305 tag, slice lengths are not explicitly defined.

@brycx brycx added the bug Something isn't working label Jan 26, 2019
@brycx
Copy link
Member Author

brycx commented Jan 26, 2019

Fixed in 72bd86a.

@brycx brycx closed this as completed Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant