summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-04-16 09:13:46 +0000
committertb <>2023-04-16 09:13:46 +0000
commit10030865c6e4fb5f2dd1d0f4c6998df519a54016 (patch)
tree5b64f3cc7faee0fdd522fa5fefac3d584bcb28f6 /src
parent009dce8f5cd5f0aed2735f535033880b152b67d7 (diff)
downloadopenbsd-10030865c6e4fb5f2dd1d0f4c6998df519a54016.tar.gz
openbsd-10030865c6e4fb5f2dd1d0f4c6998df519a54016.tar.bz2
openbsd-10030865c6e4fb5f2dd1d0f4c6998df519a54016.zip
Mark X9.31 BN API for removal
This supports a mostly forgotten, seemingly unused and long retired standard. No need for this in our public API Dyson sphere. ok jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/bn.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index ddbc829ac2..bb85ea442c 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.60 2023/04/16 09:11:06 tb Exp $ */ 1/* $OpenBSD: bn.h,v 1.61 2023/04/16 09:13: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 *
@@ -495,6 +495,8 @@ int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);
495int BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, 495int BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx,
496 int do_trial_division, BN_GENCB *cb); 496 int do_trial_division, BN_GENCB *cb);
497 497
498/* Remove in next major bump. */
499#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
498int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx); 500int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);
499 501
500int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, 502int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
@@ -505,6 +507,7 @@ int BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
505 const BIGNUM *Xp, 507 const BIGNUM *Xp,
506 const BIGNUM *e, BN_CTX *ctx, 508 const BIGNUM *e, BN_CTX *ctx,
507 BN_GENCB *cb); 509 BN_GENCB *cb);
510#endif
508 511
509BN_MONT_CTX *BN_MONT_CTX_new(void ); 512BN_MONT_CTX *BN_MONT_CTX_new(void );
510/* Remove in next major bump. */ 513/* Remove in next major bump. */