diff options
author | tb <> | 2023-03-27 10:25:02 +0000 |
---|---|---|
committer | tb <> | 2023-03-27 10:25:02 +0000 |
commit | f01ccc7c36ff1a6f9eaa959f859f2fe82c336039 (patch) | |
tree | ba91913b4904177f237fb62457d06d7234e7ad69 /src/lib/libcrypto/ecdsa | |
parent | 00aea13536dd9c7115e084e54260c208dfdfb18a (diff) | |
download | openbsd-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/ecdsa')
-rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_ossl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c index 25bcb06e88..e6d6b0cd71 100644 --- a/src/lib/libcrypto/ecdsa/ecs_ossl.c +++ b/src/lib/libcrypto/ecdsa/ecs_ossl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecs_ossl.c,v 1.30 2023/03/27 10:21:23 tb Exp $ */ | 1 | /* $OpenBSD: ecs_ossl.c,v 1.31 2023/03/27 10:25:02 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
4 | */ | 4 | */ |
@@ -200,12 +200,12 @@ ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) | |||
200 | * code path used in the constant time implementations | 200 | * code path used in the constant time implementations |
201 | * elsewhere. | 201 | * elsewhere. |
202 | * | 202 | * |
203 | * TODO: revisit the BN_copy aiming for a memory access agnostic | 203 | * TODO: revisit the bn_copy aiming for a memory access agnostic |
204 | * conditional copy. | 204 | * conditional copy. |
205 | */ | 205 | */ |
206 | if (!BN_add(r, k, order) || | 206 | if (!BN_add(r, k, order) || |
207 | !BN_add(X, r, order) || | 207 | !BN_add(X, r, order) || |
208 | !BN_copy(k, BN_num_bits(r) > order_bits ? r : X)) | 208 | !bn_copy(k, BN_num_bits(r) > order_bits ? r : X)) |
209 | goto err; | 209 | goto err; |
210 | 210 | ||
211 | BN_set_flags(k, BN_FLG_CONSTTIME); | 211 | BN_set_flags(k, BN_FLG_CONSTTIME); |