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 4bfb81d32e..af4dd41bd5 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.48 2021/12/04 16:02:44 tb Exp $ */ | 1 | /* $OpenBSD: bn.h,v 1.49 2021/12/04 16:05:46 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 | * |
@@ -609,8 +609,13 @@ BN_MONT_CTX *BN_MONT_CTX_new(void ); | |||
609 | void BN_MONT_CTX_init(BN_MONT_CTX *ctx); | 609 | void BN_MONT_CTX_init(BN_MONT_CTX *ctx); |
610 | int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, | 610 | int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, |
611 | BN_MONT_CTX *mont, BN_CTX *ctx); | 611 | BN_MONT_CTX *mont, BN_CTX *ctx); |
612 | #if defined(LIBRESSL_OPAQUE_BN) || defined(LIBRESSL_CRYPTO_INTERNAL) | ||
613 | int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont, | ||
614 | BN_CTX *ctx); | ||
615 | #else | ||
612 | #define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\ | 616 | #define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\ |
613 | (r),(a),&((mont)->RR),(mont),(ctx)) | 617 | (r),(a),&((mont)->RR),(mont),(ctx)) |
618 | #endif | ||
614 | int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, | 619 | int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, |
615 | BN_MONT_CTX *mont, BN_CTX *ctx); | 620 | BN_MONT_CTX *mont, BN_CTX *ctx); |
616 | void BN_MONT_CTX_free(BN_MONT_CTX *mont); | 621 | void BN_MONT_CTX_free(BN_MONT_CTX *mont); |