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

ascon: Add Drop & ZeroizeOnDrop for State #57

Merged
merged 1 commit into from
May 23, 2023

Conversation

aewag
Copy link
Contributor

@aewag aewag commented May 19, 2023

Not zeroizing the state allows to recover secrets, either by the inverse permutation or by reversing calculations performed with the state.

I had to drop the impl of Copy, because of the impl of Drop. The Copy trait was only used within a test.

PRs regarding ascon-hash and ascon-aead.

ascon/src/lib.rs Show resolved Hide resolved
ascon/src/lib.rs Show resolved Hide resolved
Not zeroizing the state allows to recover any squeezed output. This is
because the `ascon` permutations can be inversed. Hence, access to the
complete state allows to perform this operation.
@sebastinas sebastinas merged commit e767312 into RustCrypto:master May 23, 2023
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.

3 participants