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

poly1305: Use UniversalHash trait #5

Merged
merged 1 commit into from
Sep 1, 2019

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Sep 1, 2019

A first pass at adapting Poly1305 to use the UniversalHash trait

@tarcieri tarcieri force-pushed the poly1305/use-universal-hash-trait branch from fe227e6 to 55f495b Compare September 1, 2019 16:24
@tarcieri
Copy link
Member Author

tarcieri commented Sep 1, 2019

There are definitely a lot of ways this could be improved, since it's shoehorning the block-based API on the (buffering) slice-based one.

I'd like to play around with actually using this with ChaCha20Poly1305 AEAD first and tweaking the implementation a little bit before merging.

If all we care about are the AEAD modes, we could get rid of the internal buffering entirely, I think, but I need to confirm that.

@tarcieri tarcieri force-pushed the poly1305/use-universal-hash-trait branch 2 times, most recently from 9fc995e to c494ab7 Compare September 1, 2019 16:58
A first pass at adapting Poly1305 to use the `UniversalHash` trait
@tarcieri tarcieri force-pushed the poly1305/use-universal-hash-trait branch from c494ab7 to 299eff8 Compare September 1, 2019 16:59
@tarcieri
Copy link
Member Author

tarcieri commented Sep 1, 2019

On second thought, I think this is ok as a first pass. I'll do a follow up after playing around with ChaCha20Poly1305 AEAD before doing another release, though.

@tarcieri tarcieri merged commit 6e7668e into master Sep 1, 2019
@tarcieri tarcieri deleted the poly1305/use-universal-hash-trait branch September 1, 2019 17:32
@tarcieri tarcieri mentioned this pull request Sep 19, 2019
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

Successfully merging this pull request may close these issues.

None yet

1 participant