summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_recp.c
diff options
context:
space:
mode:
authortb <>2023-03-27 10:25:02 +0000
committertb <>2023-03-27 10:25:02 +0000
commitf01ccc7c36ff1a6f9eaa959f859f2fe82c336039 (patch)
treeba91913b4904177f237fb62457d06d7234e7ad69 /src/lib/libcrypto/bn/bn_recp.c
parent00aea13536dd9c7115e084e54260c208dfdfb18a (diff)
downloadopenbsd-f01ccc7c36ff1a6f9eaa959f859f2fe82c336039.tar.gz
openbsd-f01ccc7c36ff1a6f9eaa959f859f2fe82c336039.tar.bz2
openbsd-f01ccc7c36ff1a6f9eaa959f859f2fe82c336039.zip
Replace the remaining BN_copy() with bn_copy()
ok jsing
Diffstat (limited to 'src/lib/libcrypto/bn/bn_recp.c')
-rw-r--r--src/lib/libcrypto/bn/bn_recp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_recp.c b/src/lib/libcrypto/bn/bn_recp.c
index 117f8933bb..35390e30d4 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.18 2023/02/13 04:25:37 jsing Exp $ */ 1/* $OpenBSD: bn_recp.c,v 1.19 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 *
@@ -99,7 +99,7 @@ BN_RECP_CTX_free(BN_RECP_CTX *recp)
99int 99int
100BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) 100BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
101{ 101{
102 if (!BN_copy(&(recp->N), d)) 102 if (!bn_copy(&(recp->N), d))
103 return 0; 103 return 0;
104 BN_zero(&(recp->Nr)); 104 BN_zero(&(recp->Nr));
105 recp->num_bits = BN_num_bits(d); 105 recp->num_bits = BN_num_bits(d);
@@ -160,7 +160,7 @@ BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp,
160 160
161 if (BN_ucmp(m, &(recp->N)) < 0) { 161 if (BN_ucmp(m, &(recp->N)) < 0) {
162 BN_zero(d); 162 BN_zero(d);
163 if (!BN_copy(r, m)) { 163 if (!bn_copy(r, m)) {
164 BN_CTX_end(ctx); 164 BN_CTX_end(ctx);
165 return 0; 165 return 0;
166 } 166 }