diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/bn/bn.h | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/bn/bn_mont.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index 66a05ce9f0..7c3c0b142f 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.79 2025/01/06 13:15:08 tb Exp $ */ | 1 | /* $OpenBSD: bn.h,v 1.80 2025/03/09 15:22:40 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 | * |
| @@ -430,7 +430,7 @@ int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, | |||
| 430 | BN_MONT_CTX *mont, BN_CTX *ctx); | 430 | BN_MONT_CTX *mont, BN_CTX *ctx); |
| 431 | void BN_MONT_CTX_free(BN_MONT_CTX *mont); | 431 | void BN_MONT_CTX_free(BN_MONT_CTX *mont); |
| 432 | int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx); | 432 | int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx); |
| 433 | BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to, BN_MONT_CTX *from); | 433 | BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to, const BN_MONT_CTX *from); |
| 434 | BN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, int lock, | 434 | BN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, int lock, |
| 435 | const BIGNUM *mod, BN_CTX *ctx); | 435 | const BIGNUM *mod, BN_CTX *ctx); |
| 436 | 436 | ||
diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c index 9d0d2579d9..edd7bcd0c8 100644 --- a/src/lib/libcrypto/bn/bn_mont.c +++ b/src/lib/libcrypto/bn/bn_mont.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_mont.c,v 1.65 2025/02/13 11:09:51 tb Exp $ */ | 1 | /* $OpenBSD: bn_mont.c,v 1.66 2025/03/09 15:22:40 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 | * |
| @@ -172,7 +172,7 @@ BN_MONT_CTX_create(const BIGNUM *bn, BN_CTX *bn_ctx) | |||
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | BN_MONT_CTX * | 174 | BN_MONT_CTX * |
| 175 | BN_MONT_CTX_copy(BN_MONT_CTX *dst, BN_MONT_CTX *src) | 175 | BN_MONT_CTX_copy(BN_MONT_CTX *dst, const BN_MONT_CTX *src) |
| 176 | { | 176 | { |
| 177 | if (dst == src) | 177 | if (dst == src) |
| 178 | return dst; | 178 | return dst; |
