diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_mont.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_mont.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c index b7b2384cff..4b904c876a 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.54 2023/03/27 10:21:23 tb Exp $ */ | 1 | /* $OpenBSD: bn_mont.c,v 1.55 2023/03/27 10:25:02 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 | * |
@@ -166,9 +166,9 @@ BN_MONT_CTX_copy(BN_MONT_CTX *dst, BN_MONT_CTX *src) | |||
166 | if (dst == src) | 166 | if (dst == src) |
167 | return dst; | 167 | return dst; |
168 | 168 | ||
169 | if (!BN_copy(&dst->RR, &src->RR)) | 169 | if (!bn_copy(&dst->RR, &src->RR)) |
170 | return NULL; | 170 | return NULL; |
171 | if (!BN_copy(&dst->N, &src->N)) | 171 | if (!bn_copy(&dst->N, &src->N)) |
172 | return NULL; | 172 | return NULL; |
173 | 173 | ||
174 | dst->ri = src->ri; | 174 | dst->ri = src->ri; |
@@ -198,7 +198,7 @@ BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) | |||
198 | /* Save modulus and determine length of R. */ | 198 | /* Save modulus and determine length of R. */ |
199 | if (BN_is_zero(mod)) | 199 | if (BN_is_zero(mod)) |
200 | goto err; | 200 | goto err; |
201 | if (!BN_copy(&mont->N, mod)) | 201 | if (!bn_copy(&mont->N, mod)) |
202 | goto err; | 202 | goto err; |
203 | mont->N.neg = 0; | 203 | mont->N.neg = 0; |
204 | mont->ri = ((BN_num_bits(mod) + BN_BITS2 - 1) / BN_BITS2) * BN_BITS2; | 204 | mont->ri = ((BN_num_bits(mod) + BN_BITS2 - 1) / BN_BITS2) * BN_BITS2; |