jedisct1 / rust-blind-rsa-signatures

RSA blind signatures in Rust
MIT License
26 stars 12 forks source link

check_rsa_parameters() fails when using a valid 4096 bit key #2

Closed skepticfx closed 3 years ago

skepticfx commented 3 years ago

It looks like the range values used here excludes 4096: https://github.com/jedisct1/rust-blind-rsa-signatures/blob/master/src/lib.rs#L249-L251

if !(2048..4096).contains(&modulus_bits) {            
    return Err(Error::UnsupportedParameters);        
}

Is this intended?