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

BoxedUint support #34

Closed
tarcieri opened this issue Nov 28, 2023 · 2 comments · Fixed by #36
Closed

BoxedUint support #34

tarcieri opened this issue Nov 28, 2023 · 2 comments · Fixed by #36
Labels
enhancement New feature or request

Comments

@tarcieri
Copy link

crypto-bigint v0.6.0-pre.0 has a much more featureful BoxedUint type than previous releases which hopefully supports all of the prerequisites required for random prime generation: https://docs.rs/crypto-bigint/0.6.0-pre.0/crypto_bigint/struct.BoxedUint.html

We would like to migrate from num-bigint-dig to crypto-bigint in the rsa crate, notably because the current implementation has a timing sidechannel vulnerability. A full migration will require prime generation / primality testing, hence my interest in this issue.

@fjarri fjarri added the enhancement New feature or request label Nov 29, 2023
@fjarri
Copy link
Member

fjarri commented Nov 29, 2023

We will need something like the traits described in RustCrypto/crypto-bigint#70 (comment) to generalize the methods over Uint/BoxedUint

@fjarri
Copy link
Member

fjarri commented Nov 29, 2023

I've made a draft PR #36 to see what kind of traits we need for crypto-primes to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants