Skip to content

Tweak zeroization#343

Merged
newpavlov merged 3 commits into
masterfrom
tweak_zerioze
Jul 8, 2026
Merged

Tweak zeroization#343
newpavlov merged 3 commits into
masterfrom
tweak_zerioze

Conversation

@newpavlov

@newpavlov newpavlov commented Jul 3, 2026

Copy link
Copy Markdown
Member

The changes simplify zeroization code and fix the (technically) unsound zeroization in poly1305.

Closes #342

@newpavlov
newpavlov requested a review from tarcieri July 3, 2026 13:48
@newpavlov
newpavlov merged commit 08b9ae1 into master Jul 8, 2026
51 checks passed
@newpavlov
newpavlov deleted the tweak_zerioze branch July 8, 2026 15:03
@newpavlov newpavlov mentioned this pull request Jul 8, 2026
newpavlov added a commit that referenced this pull request Jul 8, 2026
### Fixed
- Unsound implementation of zeroization ([#343])

[#343]: #343
Comment on lines -168 to -173
#[cfg(feature = "zeroize")]
impl Zeroize for FieldElement {
fn zeroize(&mut self) {
self.0.zeroize();
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a breaking change, as FieldElement is part of the public API: https://github.com/RustCrypto/AEADs/actions/runs/29241312311/job/86787771717?pr=858#step:4:84

tarcieri added a commit that referenced this pull request Jul 16, 2026
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.

Unsound reference construction over uninitialized union and padding bytes in State::drop

2 participants