diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_local.h | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/bn/bn_recp.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h index bfdff56b0e..310cce2a0e 100644 --- a/src/lib/libcrypto/bn/bn_local.h +++ b/src/lib/libcrypto/bn/bn_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_local.h,v 1.44 2025/01/06 12:35:27 tb Exp $ */ | 1 | /* $OpenBSD: bn_local.h,v 1.45 2025/01/06 13:47:37 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -284,6 +284,8 @@ void BN_RECP_CTX_init(BN_RECP_CTX *recp); | |||
| 284 | BN_RECP_CTX *BN_RECP_CTX_new(void); | 284 | BN_RECP_CTX *BN_RECP_CTX_new(void); |
| 285 | void BN_RECP_CTX_free(BN_RECP_CTX *recp); | 285 | void BN_RECP_CTX_free(BN_RECP_CTX *recp); |
| 286 | int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx); | 286 | int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx); |
| 287 | int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp, | ||
| 288 | BN_CTX *ctx); | ||
| 287 | int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y, | 289 | int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y, |
| 288 | BN_RECP_CTX *recp, BN_CTX *ctx); | 290 | BN_RECP_CTX *recp, BN_CTX *ctx); |
| 289 | int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | 291 | int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, |
diff --git a/src/lib/libcrypto/bn/bn_recp.c b/src/lib/libcrypto/bn/bn_recp.c index c567a5b017..c9a83f8489 100644 --- a/src/lib/libcrypto/bn/bn_recp.c +++ b/src/lib/libcrypto/bn/bn_recp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_recp.c,v 1.20 2025/01/06 12:35:27 tb Exp $ */ | 1 | /* $OpenBSD: bn_recp.c,v 1.21 2025/01/06 13:47:37 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -135,7 +135,7 @@ err: | |||
| 135 | return (ret); | 135 | return (ret); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | static int | 138 | int |
| 139 | BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp, | 139 | BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp, |
| 140 | BN_CTX *ctx) | 140 | BN_CTX *ctx) |
| 141 | { | 141 | { |
