diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/bn/bn.h | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index b15e6311f9..c1d28cb10d 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.69 2023/04/25 19:53:30 tb Exp $ */ | 1 | /* $OpenBSD: bn.h,v 1.70 2023/04/25 19:57:59 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 | * |
@@ -201,15 +201,6 @@ extern "C" { | |||
201 | * BN_mod_inverse() will call BN_mod_inverse_no_branch. | 201 | * BN_mod_inverse() will call BN_mod_inverse_no_branch. |
202 | */ | 202 | */ |
203 | 203 | ||
204 | #ifndef OPENSSL_NO_DEPRECATED | ||
205 | #define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME /* deprecated name for the flag */ | ||
206 | /* avoid leaking exponent information through timings | ||
207 | * (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */ | ||
208 | #endif | ||
209 | |||
210 | #ifndef OPENSSL_NO_DEPRECATED | ||
211 | #define BN_FLG_FREE 0x8000 /* used for debugging */ | ||
212 | #endif | ||
213 | void BN_set_flags(BIGNUM *b, int n); | 204 | void BN_set_flags(BIGNUM *b, int n); |
214 | int BN_get_flags(const BIGNUM *b, int n); | 205 | int BN_get_flags(const BIGNUM *b, int n); |
215 | void BN_with_flags(BIGNUM *dest, const BIGNUM *src, int flags); | 206 | void BN_with_flags(BIGNUM *dest, const BIGNUM *src, int flags); |
@@ -443,20 +434,6 @@ void BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords); | |||
443 | 434 | ||
444 | int BN_security_bits(int L, int N); | 435 | int BN_security_bits(int L, int N); |
445 | 436 | ||
446 | /* Deprecated versions */ | ||
447 | #ifndef OPENSSL_NO_DEPRECATED | ||
448 | BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe, | ||
449 | const BIGNUM *add, const BIGNUM *rem, | ||
450 | void (*callback)(int, int, void *), void *cb_arg); | ||
451 | int BN_is_prime(const BIGNUM *p, int nchecks, | ||
452 | void (*callback)(int, int, void *), | ||
453 | BN_CTX *ctx, void *cb_arg); | ||
454 | int BN_is_prime_fasttest(const BIGNUM *p, int nchecks, | ||
455 | void (*callback)(int, int, void *), BN_CTX *ctx, void *cb_arg, | ||
456 | int do_trial_division); | ||
457 | #endif /* !defined(OPENSSL_NO_DEPRECATED) */ | ||
458 | |||
459 | /* Newer versions */ | ||
460 | int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, | 437 | int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, |
461 | const BIGNUM *rem, BN_GENCB *cb); | 438 | const BIGNUM *rem, BN_GENCB *cb); |
462 | int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb); | 439 | int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb); |
@@ -487,10 +464,7 @@ int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); | |||
487 | int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); | 464 | int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); |
488 | int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); | 465 | int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); |
489 | int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *); | 466 | int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *); |
490 | #ifndef OPENSSL_NO_DEPRECATED | 467 | |
491 | unsigned long BN_BLINDING_get_thread_id(const BN_BLINDING *); | ||
492 | void BN_BLINDING_set_thread_id(BN_BLINDING *, unsigned long); | ||
493 | #endif | ||
494 | CRYPTO_THREADID *BN_BLINDING_thread_id(BN_BLINDING *); | 468 | CRYPTO_THREADID *BN_BLINDING_thread_id(BN_BLINDING *); |
495 | unsigned long BN_BLINDING_get_flags(const BN_BLINDING *); | 469 | unsigned long BN_BLINDING_get_flags(const BN_BLINDING *); |
496 | void BN_BLINDING_set_flags(BN_BLINDING *, unsigned long); | 470 | void BN_BLINDING_set_flags(BN_BLINDING *, unsigned long); |
@@ -500,11 +474,6 @@ BN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b, | |||
500 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), | 474 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), |
501 | BN_MONT_CTX *m_ctx); | 475 | BN_MONT_CTX *m_ctx); |
502 | 476 | ||
503 | #ifndef OPENSSL_NO_DEPRECATED | ||
504 | void BN_set_params(int mul, int high, int low, int mont); | ||
505 | int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */ | ||
506 | #endif | ||
507 | |||
508 | /* Primes from RFC 2409 */ | 477 | /* Primes from RFC 2409 */ |
509 | BIGNUM *get_rfc2409_prime_768(BIGNUM *bn); | 478 | BIGNUM *get_rfc2409_prime_768(BIGNUM *bn); |
510 | BIGNUM *get_rfc2409_prime_1024(BIGNUM *bn); | 479 | BIGNUM *get_rfc2409_prime_1024(BIGNUM *bn); |