Skip to content

ascon: Add Drop & ZeroizeOnDrop for State#57

Merged
sebastinas merged 1 commit intoRustCrypto:masterfrom
aewag:add-zeroize-ascon
May 23, 2023
Merged

ascon: Add Drop & ZeroizeOnDrop for State#57
sebastinas merged 1 commit intoRustCrypto:masterfrom
aewag:add-zeroize-ascon

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.

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.
@aewag aewag force-pushed the add-zeroize-ascon branch from 647aeac to 942fcd1 Compare May 22, 2023 14:32
@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