summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-12-04 09:24:54 +0000
committerBodo Möller <bodo@openssl.org>2000-12-04 09:24:54 +0000
commite5164b704117967f4b7f23aeb5bf5d5b181764e6 (patch)
treea9b46354a3395b8fc02756d81aa421211cca1f19 /crypto
parentebff44b83a93eb86fc0fc3ef2b394b683ca4308b (diff)
Change error message to "bignum too long"
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bn/bn.h2
-rw-r--r--crypto/bn/bn_err.c2
-rw-r--r--crypto/bn/bn_lib.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h
index a5b6ed9d4c..47e355ea9d 100644
--- a/crypto/bn/bn.h
+++ b/crypto/bn/bn.h
@@ -531,6 +531,7 @@ int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom);
/* Reason codes. */
#define BN_R_ARG2_LT_ARG3 100
#define BN_R_BAD_RECIPROCAL 101
+#define BN_R_BIGNUM_TOO_LONG 114
#define BN_R_CALLED_WITH_EVEN_MODULUS 102
#define BN_R_DIV_BY_ZERO 103
#define BN_R_ENCODING_ERROR 104
@@ -541,7 +542,6 @@ int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom);
#define BN_R_NOT_INITIALIZED 107
#define BN_R_NO_INVERSE 108
#define BN_R_P_IS_NOT_PRIME 112
-#define BN_R_TOO_LARGE 114
#define BN_R_TOO_MANY_ITERATIONS 113
#define BN_R_TOO_MANY_TEMPORARY_VARIABLES 109
diff --git a/crypto/bn/bn_err.c b/crypto/bn/bn_err.c
index 2bb311f95c..d7f0493f47 100644
--- a/crypto/bn/bn_err.c
+++ b/crypto/bn/bn_err.c
@@ -95,6 +95,7 @@ static ERR_STRING_DATA BN_str_reasons[]=
{
{BN_R_ARG2_LT_ARG3 ,"arg2 lt arg3"},
{BN_R_BAD_RECIPROCAL ,"bad reciprocal"},
+{BN_R_BIGNUM_TOO_LONG ,"bignum too long"},
{BN_R_CALLED_WITH_EVEN_MODULUS ,"called with even modulus"},
{BN_R_DIV_BY_ZERO ,"div by zero"},
{BN_R_ENCODING_ERROR ,"encoding error"},
@@ -105,7 +106,6 @@ static ERR_STRING_DATA BN_str_reasons[]=
{BN_R_NOT_INITIALIZED ,"not initialized"},
{BN_R_NO_INVERSE ,"no inverse"},
{BN_R_P_IS_NOT_PRIME ,"p is not prime"},
-{BN_R_TOO_LARGE ,"too large"},
{BN_R_TOO_MANY_ITERATIONS ,"too many iterations"},
{BN_R_TOO_MANY_TEMPORARY_VARIABLES ,"too many temporary variables"},
{0,NULL}
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c
index c71f0b0863..e37b85bfc5 100644
--- a/crypto/bn/bn_lib.c
+++ b/crypto/bn/bn_lib.c
@@ -315,7 +315,7 @@ static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
if (words > (INT_MAX/(4*BN_BITS2)))
{
- BNerr(BN_F_BN_EXPAND_INTERNAL,BN_R_TOO_LARGE);
+ BNerr(BN_F_BN_EXPAND_INTERNAL,BN_R_BIGNUM_TOO_LONG);
return NULL;
}