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

aead: extract AeadCore trait #508

Merged
merged 1 commit into from
Jan 30, 2021
Merged

aead: extract AeadCore trait #508

merged 1 commit into from
Jan 30, 2021

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Jan 30, 2021

Closes #489 (potentially, cc @theory).

Extracts a single trait for defining nonce, tag, and overhead sizes instead of repetitively defining those associated types on every other trait.

This allows for fully generic Nonce<A> and Tag<A> type aliases.

Extracts a single trait for defining nonce, tag, and overhead sizes
instead of repetitively defining those associated types on every other
trait.

This allows for fully generic `Nonce<A>` and `Tag<A>` type aliases.
@tarcieri
Copy link
Member Author

This doesn't include helper methods which return usize, but those could potentially be included.

@theory
Copy link

theory commented Jan 30, 2021

Looks like it removes a ton of repetitiveness, nice!

@tarcieri tarcieri merged commit d50727b into master Jan 30, 2021
@tarcieri tarcieri deleted the aead/extract-core-trait branch January 30, 2021 14:16
This was referenced Feb 3, 2021
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.

Add Nonce, Tag sizes to Aead Traits
2 participants