diff options
author | Rob Austein <sra@hactrn.net> | 2006-10-09 16:47:10 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2006-10-09 16:47:10 +0000 |
commit | 4043d7db4e466d15193c3bad3b204048fc13b785 (patch) | |
tree | 8156ce31a6e4a155fc240551f48c23b5a42a6e5e /openssl/trunk/crypto/rsa/rsa.h | |
parent | aba277548b76071e75fc9478002a6fc2145f64f1 (diff) |
Merged in changes from OpenSSL 0.9.8d
svn path=/openssl/trunk/CHANGES; revision=377
Diffstat (limited to 'openssl/trunk/crypto/rsa/rsa.h')
-rw-r--r-- | openssl/trunk/crypto/rsa/rsa.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openssl/trunk/crypto/rsa/rsa.h b/openssl/trunk/crypto/rsa/rsa.h index d302254b..b19c5569 100644 --- a/openssl/trunk/crypto/rsa/rsa.h +++ b/openssl/trunk/crypto/rsa/rsa.h @@ -159,6 +159,17 @@ struct rsa_st BN_BLINDING *mt_blinding; }; +#ifndef OPENSSL_RSA_MAX_MODULUS_BITS +# define OPENSSL_RSA_MAX_MODULUS_BITS 16384 +#endif + +#ifndef OPENSSL_RSA_SMALL_MODULUS_BITS +# define OPENSSL_RSA_SMALL_MODULUS_BITS 3072 +#endif +#ifndef OPENSSL_RSA_MAX_PUBEXP_BITS +# define OPENSSL_RSA_MAX_PUBEXP_BITS 64 /* exponent limit enforced for "large" modulus only */ +#endif + #define RSA_3 0x3L #define RSA_F4 0x10001L @@ -407,6 +418,7 @@ void ERR_load_RSA_strings(void); #define RSA_R_IQMP_NOT_INVERSE_OF_Q 126 #define RSA_R_KEY_SIZE_TOO_SMALL 120 #define RSA_R_LAST_OCTET_INVALID 134 +#define RSA_R_MODULUS_TOO_LARGE 105 #define RSA_R_NO_PUBLIC_EXPONENT 140 #define RSA_R_NULL_BEFORE_BLOCK_MISSING 113 #define RSA_R_N_DOES_NOT_EQUAL_P_Q 127 |