summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r--src/lib/libcrypto/bn/bn.h4
1 files changed, 3 insertions, 1 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 */
617int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); 618int 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);
625const BIGNUM *BN_get0_nist_prime_256(void); 626const BIGNUM *BN_get0_nist_prime_256(void);
626const BIGNUM *BN_get0_nist_prime_384(void); 627const BIGNUM *BN_get0_nist_prime_384(void);
627const BIGNUM *BN_get0_nist_prime_521(void); 628const BIGNUM *BN_get0_nist_prime_521(void);
629#endif
628 630
629/* Primes from RFC 2409 */ 631/* Primes from RFC 2409 */
630BIGNUM *get_rfc2409_prime_768(BIGNUM *bn); 632BIGNUM *get_rfc2409_prime_768(BIGNUM *bn);