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

Implement Zeroize for NonZero wrapper #406

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

aumetra
Copy link
Contributor

@aumetra aumetra commented Dec 7, 2023

When attempting to port over dsa to crypto-bigint, I noticed that the NonZero wrapper has no implementation for the Zeroize trait.

That made it a bit annoying to implement the internals that expect the private factor x to be wrapped into a Zeroizing wrapper.

@tarcieri tarcieri merged commit 06b608d into RustCrypto:master Dec 8, 2023
16 checks passed
@aumetra aumetra deleted the zeroize-non-zero branch December 9, 2023 17:42
@tarcieri
Copy link
Member

When attempting to port over dsa to crypto-bigint...

@aumetra how's that going?

@aumetra
Copy link
Contributor Author

aumetra commented Dec 11, 2023

how's that going?

Pretty good actually. Looking at the code, it should only leak public factors through the few vartime operations needed.

The only thing I'm waiting for right now is crypto-primes for the key generation functions.

@tarcieri
Copy link
Member

@aumetra FYI, new crypto-primes prerelease is out: https://docs.rs/crypto-primes/0.6.0-pre.0/crypto_primes/

@tarcieri tarcieri mentioned this pull request Jan 22, 2025
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.

2 participants