Closed tarcieri closed 9 months ago
We will need something like the traits described in https://github.com/RustCrypto/crypto-bigint/issues/70#issuecomment-1699951193 to generalize the methods over Uint
/BoxedUint
I've made a draft PR #36 to see what kind of traits we need for crypto-primes
to work
crypto-bigint
v0.6.0-pre.0 has a much more featurefulBoxedUint
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.htmlWe would like to migrate from
num-bigint-dig
tocrypto-bigint
in thersa
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.