diff options
author | tb <> | 2023-04-16 09:11:06 +0000 |
---|---|---|
committer | tb <> | 2023-04-16 09:11:06 +0000 |
commit | 009dce8f5cd5f0aed2735f535033880b152b67d7 (patch) | |
tree | 414b4ddc24a9bc937f6f0fc1cff28aabe4668878 /src/lib | |
parent | 5395426626260fbe486c8cc65ba8222305ecc71e (diff) | |
download | openbsd-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.h | 8 |
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, | |||
444 | int BN_mask_bits(BIGNUM *a, int n); | 444 | int BN_mask_bits(BIGNUM *a, int n); |
445 | int BN_print_fp(FILE *fp, const BIGNUM *a); | 445 | int BN_print_fp(FILE *fp, const BIGNUM *a); |
446 | int BN_print(BIO *fp, const BIGNUM *a); | 446 | int 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) | ||
447 | int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx); | 449 | int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx); |
450 | #endif | ||
448 | int BN_rshift(BIGNUM *r, const BIGNUM *a, int n); | 451 | int BN_rshift(BIGNUM *r, const BIGNUM *a, int n); |
449 | int BN_rshift1(BIGNUM *r, const BIGNUM *a); | 452 | int BN_rshift1(BIGNUM *r, const BIGNUM *a); |
450 | void BN_clear(BIGNUM *a); | 453 | void BN_clear(BIGNUM *a); |
@@ -549,6 +552,8 @@ void BN_set_params(int mul, int high, int low, int mont); | |||
549 | int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */ | 552 | int 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) | ||
552 | void BN_RECP_CTX_init(BN_RECP_CTX *recp); | 557 | void BN_RECP_CTX_init(BN_RECP_CTX *recp); |
553 | BN_RECP_CTX *BN_RECP_CTX_new(void); | 558 | BN_RECP_CTX *BN_RECP_CTX_new(void); |
554 | void BN_RECP_CTX_free(BN_RECP_CTX *recp); | 559 | void 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); |
560 | int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, | 565 | int 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 | ||