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: type aliases for Key, Nonce, and Tag #125

Merged
merged 1 commit into from
May 23, 2020

Conversation

tarcieri
Copy link
Member

It's syntactically annoying to have to use GenericArray<u8, N> for these types.

This commit introduces a set of GenericArray type aliases for them instead.

Notably, Key might benefit from having a proper struct which handles things like zeroization on drop and prevents accidental exposure in debug output, however this PR uses a simple GenericArray type alias for now.

It's syntactically annoying to have to use `GenericArray<u8, N>` for
these types.

This commit introduces a set of `GenericArray` type aliases for them
instead.

Notably, `Key` might benefit from having a proper struct which handles
things like zeroization on drop and prevents accidental exposure in
debug output, however this PR uses a simple `GenericArray` type alias
for now.
@tarcieri tarcieri merged commit 80e8174 into master May 23, 2020
@tarcieri tarcieri deleted the aead/genericarray-type-aliases branch May 23, 2020 19:44
@tarcieri tarcieri mentioned this pull request Jun 5, 2020
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