diff options
author | pvalchev <> | 2006-10-04 07:10:32 +0000 |
---|---|---|
committer | pvalchev <> | 2006-10-04 07:10:32 +0000 |
commit | 2ae4a931445dd6121f260bcc0af2dde32a871cd0 (patch) | |
tree | 79c58b0010b91a2778efdc406095e24c85a41ae1 /src/lib/libcrypto/rsa/rsa.h | |
parent | c2d940ce6f2c3ef66262b7c1953e6286cf68b267 (diff) | |
download | openbsd-2ae4a931445dd6121f260bcc0af2dde32a871cd0.tar.gz openbsd-2ae4a931445dd6121f260bcc0af2dde32a871cd0.tar.bz2 openbsd-2ae4a931445dd6121f260bcc0af2dde32a871cd0.zip |
openssl security fixes, diff from markus@, ok & "commit it" djm@
http://www.openssl.org/news/secadv_20060928.txt for more
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa.h')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index 0b639cd37f..dbed701e89 100644 --- a/src/lib/libcrypto/rsa/rsa.h +++ b/src/lib/libcrypto/rsa/rsa.h | |||
@@ -154,6 +154,11 @@ struct rsa_st | |||
154 | BN_BLINDING *blinding; | 154 | BN_BLINDING *blinding; |
155 | }; | 155 | }; |
156 | 156 | ||
157 | #define OPENSSL_RSA_MAX_MODULUS_BITS 16384 | ||
158 | |||
159 | #define OPENSSL_RSA_SMALL_MODULUS_BITS 3072 | ||
160 | #define OPENSSL_RSA_MAX_PUBEXP_BITS 64 /* exponent limit enforced for "small" modulus only */ | ||
161 | |||
157 | #define RSA_3 0x3L | 162 | #define RSA_3 0x3L |
158 | #define RSA_F4 0x10001L | 163 | #define RSA_F4 0x10001L |
159 | 164 | ||
@@ -386,6 +391,7 @@ void ERR_load_RSA_strings(void); | |||
386 | #define RSA_R_IQMP_NOT_INVERSE_OF_Q 126 | 391 | #define RSA_R_IQMP_NOT_INVERSE_OF_Q 126 |
387 | #define RSA_R_KEY_SIZE_TOO_SMALL 120 | 392 | #define RSA_R_KEY_SIZE_TOO_SMALL 120 |
388 | #define RSA_R_LAST_OCTET_INVALID 134 | 393 | #define RSA_R_LAST_OCTET_INVALID 134 |
394 | #define RSA_R_MODULUS_TOO_LARGE 105 | ||
389 | #define RSA_R_NULL_BEFORE_BLOCK_MISSING 113 | 395 | #define RSA_R_NULL_BEFORE_BLOCK_MISSING 113 |
390 | #define RSA_R_N_DOES_NOT_EQUAL_P_Q 127 | 396 | #define RSA_R_N_DOES_NOT_EQUAL_P_Q 127 |
391 | #define RSA_R_OAEP_DECODING_ERROR 121 | 397 | #define RSA_R_OAEP_DECODING_ERROR 121 |