fix: deny init with <= 2048 bit keys
this might need to be changed silently to 2048 if the tests use 1024 bit
keys.
@@ -59,7 +59,8 @@ fn create(
let bits = bits.get();
- if bits < 1024 || bits > 16 * 1024 {
+ if bits < 2048 || bits > 16 * 1024 {
+ // ring will not accept a less than 2048 key
return Err(InitializationError::InvalidRsaKeyLength(bits));
}
