summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-04-16 09:11:06 +0000
committertb <>2023-04-16 09:11:06 +0000
commit009dce8f5cd5f0aed2735f535033880b152b67d7 (patch)
tree414b4ddc24a9bc937f6f0fc1cff28aabe4668878 /src/lib
parent5395426626260fbe486c8cc65ba8222305ecc71e (diff)
downloadopenbsd-009dce8f5cd5f0aed2735f535033880b152b67d7.tar.gz
openbsd-009dce8f5cd5f0aed2735f535033880b152b67d7.tar.bz2
openbsd-009dce8f5cd5f0aed2735f535033880b152b67d7.zip
The BN reciprocal API will also become internal-only
This is unused outside of the library and could do with some reworking. That's easier without having to care about outside consumers. ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bn/bn.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index e090c46696..ddbc829ac2 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.59 2023/04/16 09:08:20 tb Exp $ */ 1/* $OpenBSD: bn.h,v 1.60 2023/04/16 09:11:06 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 *
@@ -444,7 +444,10 @@ int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
444int BN_mask_bits(BIGNUM *a, int n); 444int BN_mask_bits(BIGNUM *a, int n);
445int BN_print_fp(FILE *fp, const BIGNUM *a); 445int BN_print_fp(FILE *fp, const BIGNUM *a);
446int BN_print(BIO *fp, const BIGNUM *a); 446int BN_print(BIO *fp, const BIGNUM *a);
447/* Move to bn_local.h in the next major bump. */
448#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
447int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx); 449int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);
450#endif
448int BN_rshift(BIGNUM *r, const BIGNUM *a, int n); 451int BN_rshift(BIGNUM *r, const BIGNUM *a, int n);
449int BN_rshift1(BIGNUM *r, const BIGNUM *a); 452int BN_rshift1(BIGNUM *r, const BIGNUM *a);
450void BN_clear(BIGNUM *a); 453void BN_clear(BIGNUM *a);
@@ -549,6 +552,8 @@ void BN_set_params(int mul, int high, int low, int mont);
549int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */ 552int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */
550#endif 553#endif
551 554
555/* Move to bn_local.h in the next major bump. */
556#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
552void BN_RECP_CTX_init(BN_RECP_CTX *recp); 557void BN_RECP_CTX_init(BN_RECP_CTX *recp);
553BN_RECP_CTX *BN_RECP_CTX_new(void); 558BN_RECP_CTX *BN_RECP_CTX_new(void);
554void BN_RECP_CTX_free(BN_RECP_CTX *recp); 559void BN_RECP_CTX_free(BN_RECP_CTX *recp);
@@ -559,6 +564,7 @@ int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
559 const BIGNUM *m, BN_CTX *ctx); 564 const BIGNUM *m, BN_CTX *ctx);
560int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, 565int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
561 BN_RECP_CTX *recp, BN_CTX *ctx); 566 BN_RECP_CTX *recp, BN_CTX *ctx);
567#endif
562 568
563#ifndef OPENSSL_NO_EC2M 569#ifndef OPENSSL_NO_EC2M
564 570