diff options
-rw-r--r-- | src/lib/libcrypto/bn/bn.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index ba6c25ba0a..d6f77288c1 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.57 2022/12/17 15:56:25 jsing Exp $ */ | 1 | /* $OpenBSD: bn.h,v 1.58 2023/04/16 08:55: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 | * |
@@ -612,6 +612,7 @@ int BN_GF2m_arr2poly(const int p[], BIGNUM *a); | |||
612 | 612 | ||
613 | #endif | 613 | #endif |
614 | 614 | ||
615 | #if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
615 | /* faster mod functions for the 'NIST primes' | 616 | /* faster mod functions for the 'NIST primes' |
616 | * 0 <= a < p^2 */ | 617 | * 0 <= a < p^2 */ |
617 | int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); | 618 | int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); |
@@ -625,6 +626,7 @@ const BIGNUM *BN_get0_nist_prime_224(void); | |||
625 | const BIGNUM *BN_get0_nist_prime_256(void); | 626 | const BIGNUM *BN_get0_nist_prime_256(void); |
626 | const BIGNUM *BN_get0_nist_prime_384(void); | 627 | const BIGNUM *BN_get0_nist_prime_384(void); |
627 | const BIGNUM *BN_get0_nist_prime_521(void); | 628 | const BIGNUM *BN_get0_nist_prime_521(void); |
629 | #endif | ||
628 | 630 | ||
629 | /* Primes from RFC 2409 */ | 631 | /* Primes from RFC 2409 */ |
630 | BIGNUM *get_rfc2409_prime_768(BIGNUM *bn); | 632 | BIGNUM *get_rfc2409_prime_768(BIGNUM *bn); |
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 2e674c424f..f0f2d8cf0c 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec.h,v 1.32 2023/04/16 08:36:13 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.33 2023/04/16 08:55:44 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -145,10 +145,12 @@ const EC_METHOD *EC_GFp_simple_method(void); | |||
145 | */ | 145 | */ |
146 | const EC_METHOD *EC_GFp_mont_method(void); | 146 | const EC_METHOD *EC_GFp_mont_method(void); |
147 | 147 | ||
148 | #if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
148 | /** Returns GFp methods using optimized methods for NIST recommended curves | 149 | /** Returns GFp methods using optimized methods for NIST recommended curves |
149 | * \return EC_METHOD object | 150 | * \return EC_METHOD object |
150 | */ | 151 | */ |
151 | const EC_METHOD *EC_GFp_nist_method(void); | 152 | const EC_METHOD *EC_GFp_nist_method(void); |
153 | #endif | ||
152 | 154 | ||
153 | #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 | 155 | #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 |
154 | /** Returns 64-bit optimized methods for nistp224 | 156 | /** Returns 64-bit optimized methods for nistp224 |