aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn.h
diff options
context:
space:
mode:
authorAdam Langley <agl@chromium.org>2013-04-23 14:36:06 -0400
committerBen Laurie <ben@links.org>2013-06-04 18:52:30 +0100
commit96a4c31be3344cb08994a9d460c0ebd55939cc5b (patch)
tree45882a374b9c9dd0c46c0df2f17d640de3448d82 /crypto/bn/bn.h
parent2b0180c37fa6ffc48ee40caa831ca398b828e680 (diff)
downloadopenssl-96a4c31be3344cb08994a9d460c0ebd55939cc5b.tar.gz
Ensure that, when generating small primes, the result is actually of the
requested size. Fixes OpenSSL #2701. This change does not address the cases of generating safe primes, or where the |add| parameter is non-NULL. Conflicts: crypto/bn/bn.h crypto/bn/bn_err.c
Diffstat (limited to 'crypto/bn/bn.h')
-rw-r--r--crypto/bn/bn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h
index 0e5e554937..d7397cae8b 100644
--- a/crypto/bn/bn.h
+++ b/crypto/bn/bn.h
@@ -826,6 +826,8 @@ void ERR_load_BN_strings(void);
#define BN_F_BN_EXP 123
#define BN_F_BN_EXPAND2 108
#define BN_F_BN_EXPAND_INTERNAL 120
+#define BN_F_BN_GENERATE_DSA_NONCE 140
+#define BN_F_BN_GENERATE_PRIME_EX 141
#define BN_F_BN_GF2M_MOD 131
#define BN_F_BN_GF2M_MOD_EXP 132
#define BN_F_BN_GF2M_MOD_MUL 133
@@ -854,6 +856,7 @@ void ERR_load_BN_strings(void);
#define BN_R_ARG2_LT_ARG3 100
#define BN_R_BAD_RECIPROCAL 101
#define BN_R_BIGNUM_TOO_LONG 114
+#define BN_R_BITS_TOO_SMALL 118
#define BN_R_CALLED_WITH_EVEN_MODULUS 102
#define BN_R_DIV_BY_ZERO 103
#define BN_R_ENCODING_ERROR 104