diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn.h')
-rw-r--r-- | src/lib/libcrypto/bn/bn.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index e9837cbbd6..4bfb81d32e 100644 --- a/src/lib/libcrypto/bn/bn.h +++ b/src/lib/libcrypto/bn/bn.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn.h,v 1.47 2021/12/04 15:59:52 tb Exp $ */ | 1 | /* $OpenBSD: bn.h,v 1.48 2021/12/04 16:02:44 tb Exp $ */ |
2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -485,11 +485,16 @@ int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx); | |||
485 | * \param n 0 if the BIGNUM b should be positive and a value != 0 otherwise | 485 | * \param n 0 if the BIGNUM b should be positive and a value != 0 otherwise |
486 | */ | 486 | */ |
487 | void BN_set_negative(BIGNUM *b, int n); | 487 | void BN_set_negative(BIGNUM *b, int n); |
488 | |||
489 | #if defined(LIBRESSL_OPAQUE_BN) || defined(LIBRESSL_CRYPTO_INTERNAL) | ||
490 | int BN_is_negative(const BIGNUM *b); | ||
491 | #else | ||
488 | /** BN_is_negative returns 1 if the BIGNUM is negative | 492 | /** BN_is_negative returns 1 if the BIGNUM is negative |
489 | * \param a pointer to the BIGNUM object | 493 | * \param a pointer to the BIGNUM object |
490 | * \return 1 if a < 0 and 0 otherwise | 494 | * \return 1 if a < 0 and 0 otherwise |
491 | */ | 495 | */ |
492 | #define BN_is_negative(a) ((a)->neg != 0) | 496 | #define BN_is_negative(a) ((a)->neg != 0) |
497 | #endif | ||
493 | 498 | ||
494 | #ifndef LIBRESSL_INTERNAL | 499 | #ifndef LIBRESSL_INTERNAL |
495 | int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, | 500 | int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, |