diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/bn/bn.h')
-rw-r--r-- | src/lib/libssl/src/crypto/bn/bn.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/src/crypto/bn/bn.h b/src/lib/libssl/src/crypto/bn/bn.h index 1eb8395b25..b232c2ceae 100644 --- a/src/lib/libssl/src/crypto/bn/bn.h +++ b/src/lib/libssl/src/crypto/bn/bn.h | |||
@@ -239,7 +239,7 @@ typedef struct bignum_st | |||
239 | } BIGNUM; | 239 | } BIGNUM; |
240 | 240 | ||
241 | /* Used for temp variables */ | 241 | /* Used for temp variables */ |
242 | #define BN_CTX_NUM 12 | 242 | #define BN_CTX_NUM 16 |
243 | #define BN_CTX_NUM_POS 12 | 243 | #define BN_CTX_NUM_POS 12 |
244 | typedef struct bignum_ctx | 244 | typedef struct bignum_ctx |
245 | { | 245 | { |
@@ -328,6 +328,7 @@ BIGNUM *BN_CTX_get(BN_CTX *ctx); | |||
328 | void BN_CTX_end(BN_CTX *ctx); | 328 | void BN_CTX_end(BN_CTX *ctx); |
329 | int BN_rand(BIGNUM *rnd, int bits, int top,int bottom); | 329 | int BN_rand(BIGNUM *rnd, int bits, int top,int bottom); |
330 | int BN_pseudo_rand(BIGNUM *rnd, int bits, int top,int bottom); | 330 | int BN_pseudo_rand(BIGNUM *rnd, int bits, int top,int bottom); |
331 | int BN_rand_range(BIGNUM *rnd, BIGNUM *range); | ||
331 | int BN_num_bits(const BIGNUM *a); | 332 | int BN_num_bits(const BIGNUM *a); |
332 | int BN_num_bits_word(BN_ULONG); | 333 | int BN_num_bits_word(BN_ULONG); |
333 | BIGNUM *BN_new(void); | 334 | BIGNUM *BN_new(void); |
@@ -467,6 +468,8 @@ BN_ULONG bn_sub_words(BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int num); | |||
467 | # define bn_dump(a,b) | 468 | # define bn_dump(a,b) |
468 | #endif | 469 | #endif |
469 | 470 | ||
471 | int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom); | ||
472 | |||
470 | /* BEGIN ERROR CODES */ | 473 | /* BEGIN ERROR CODES */ |
471 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 474 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
472 | * made after this point may be overwritten when the script is next run. | 475 | * made after this point may be overwritten when the script is next run. |
@@ -493,16 +496,19 @@ BN_ULONG bn_sub_words(BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int num); | |||
493 | #define BN_F_BN_MPI2BN 112 | 496 | #define BN_F_BN_MPI2BN 112 |
494 | #define BN_F_BN_NEW 113 | 497 | #define BN_F_BN_NEW 113 |
495 | #define BN_F_BN_RAND 114 | 498 | #define BN_F_BN_RAND 114 |
499 | #define BN_F_BN_RAND_RANGE 122 | ||
496 | #define BN_F_BN_USUB 115 | 500 | #define BN_F_BN_USUB 115 |
497 | 501 | ||
498 | /* Reason codes. */ | 502 | /* Reason codes. */ |
499 | #define BN_R_ARG2_LT_ARG3 100 | 503 | #define BN_R_ARG2_LT_ARG3 100 |
500 | #define BN_R_BAD_RECIPROCAL 101 | 504 | #define BN_R_BAD_RECIPROCAL 101 |
505 | #define BN_R_BIGNUM_TOO_LONG 114 | ||
501 | #define BN_R_CALLED_WITH_EVEN_MODULUS 102 | 506 | #define BN_R_CALLED_WITH_EVEN_MODULUS 102 |
502 | #define BN_R_DIV_BY_ZERO 103 | 507 | #define BN_R_DIV_BY_ZERO 103 |
503 | #define BN_R_ENCODING_ERROR 104 | 508 | #define BN_R_ENCODING_ERROR 104 |
504 | #define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA 105 | 509 | #define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA 105 |
505 | #define BN_R_INVALID_LENGTH 106 | 510 | #define BN_R_INVALID_LENGTH 106 |
511 | #define BN_R_INVALID_RANGE 115 | ||
506 | #define BN_R_NOT_INITIALIZED 107 | 512 | #define BN_R_NOT_INITIALIZED 107 |
507 | #define BN_R_NO_INVERSE 108 | 513 | #define BN_R_NO_INVERSE 108 |
508 | #define BN_R_TOO_MANY_TEMPORARY_VARIABLES 109 | 514 | #define BN_R_TOO_MANY_TEMPORARY_VARIABLES 109 |