diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn.h')
| -rw-r--r-- | src/lib/libcrypto/bn/bn.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index 21a1a3fe35..f34248ec4f 100644 --- a/src/lib/libcrypto/bn/bn.h +++ b/src/lib/libcrypto/bn/bn.h | |||
| @@ -538,8 +538,6 @@ BIGNUM *BN_mod_inverse(BIGNUM *ret, | |||
| 538 | BIGNUM *BN_mod_sqrt(BIGNUM *ret, | 538 | BIGNUM *BN_mod_sqrt(BIGNUM *ret, |
| 539 | const BIGNUM *a, const BIGNUM *n,BN_CTX *ctx); | 539 | const BIGNUM *a, const BIGNUM *n,BN_CTX *ctx); |
| 540 | 540 | ||
| 541 | void BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords); | ||
| 542 | |||
| 543 | /* Deprecated versions */ | 541 | /* Deprecated versions */ |
| 544 | #ifndef OPENSSL_NO_DEPRECATED | 542 | #ifndef OPENSSL_NO_DEPRECATED |
| 545 | BIGNUM *BN_generate_prime(BIGNUM *ret,int bits,int safe, | 543 | BIGNUM *BN_generate_prime(BIGNUM *ret,int bits,int safe, |
| @@ -776,20 +774,11 @@ int RAND_pseudo_bytes(unsigned char *buf,int num); | |||
| 776 | 774 | ||
| 777 | #define bn_fix_top(a) bn_check_top(a) | 775 | #define bn_fix_top(a) bn_check_top(a) |
| 778 | 776 | ||
| 779 | #define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits+BN_BITS2-1))/BN_BITS2) | ||
| 780 | #define bn_wcheck_size(bn, words) \ | ||
| 781 | do { \ | ||
| 782 | const BIGNUM *_bnum2 = (bn); \ | ||
| 783 | assert(words <= (_bnum2)->dmax && words >= (_bnum2)->top); \ | ||
| 784 | } while(0) | ||
| 785 | |||
| 786 | #else /* !BN_DEBUG */ | 777 | #else /* !BN_DEBUG */ |
| 787 | 778 | ||
| 788 | #define bn_pollute(a) | 779 | #define bn_pollute(a) |
| 789 | #define bn_check_top(a) | 780 | #define bn_check_top(a) |
| 790 | #define bn_fix_top(a) bn_correct_top(a) | 781 | #define bn_fix_top(a) bn_correct_top(a) |
| 791 | #define bn_check_size(bn, bits) | ||
| 792 | #define bn_wcheck_size(bn, words) | ||
| 793 | 782 | ||
| 794 | #endif | 783 | #endif |
| 795 | 784 | ||
