rsa: Do not allow less than 512 bit RSA keys
[openssl.git] / crypto / rsa / rsa_locl.h
index 52d839d73a7a647596a9479f49c20daaa83d593f..9bd53bec5a579f7bf8f592d22f2b391e44258834 100644 (file)
@@ -12,6 +12,7 @@
 
 #define RSA_MAX_PRIME_NUM 16
 #define RSA_MIN_PRIME_SIZE 64
+#define RSA_MIN_MODULUS_BITS   512
 
 typedef struct rsa_prime_info_st {
     BIGNUM *r;