diff options
| author | tb <> | 2023-03-27 10:25:02 +0000 |
|---|---|---|
| committer | tb <> | 2023-03-27 10:25:02 +0000 |
| commit | aeb32cad44c92f3786167b06a0f9c4310cbb713d (patch) | |
| tree | ba91913b4904177f237fb62457d06d7234e7ad69 /src/lib/libcrypto/dsa/dsa_ossl.c | |
| parent | 31952254deba94cb76af7a03b169b818e5af326c (diff) | |
| download | openbsd-aeb32cad44c92f3786167b06a0f9c4310cbb713d.tar.gz openbsd-aeb32cad44c92f3786167b06a0f9c4310cbb713d.tar.bz2 openbsd-aeb32cad44c92f3786167b06a0f9c4310cbb713d.zip | |
Replace the remaining BN_copy() with bn_copy()
ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_ossl.c')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_ossl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_ossl.c b/src/lib/libcrypto/dsa/dsa_ossl.c index ece1026fc9..b69cf1a03f 100644 --- a/src/lib/libcrypto/dsa/dsa_ossl.c +++ b/src/lib/libcrypto/dsa/dsa_ossl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsa_ossl.c,v 1.50 2023/03/04 21:30:23 tb Exp $ */ | 1 | /* $OpenBSD: dsa_ossl.c,v 1.51 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 | * |
| @@ -282,13 +282,13 @@ dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) | |||
| 282 | * small timing information leakage. We then choose the sum that is | 282 | * small timing information leakage. We then choose the sum that is |
| 283 | * one bit longer than the modulus. | 283 | * one bit longer than the modulus. |
| 284 | * | 284 | * |
| 285 | * TODO: revisit the BN_copy aiming for a memory access agnostic | 285 | * TODO: revisit the bn_copy aiming for a memory access agnostic |
| 286 | * conditional copy. | 286 | * conditional copy. |
| 287 | */ | 287 | */ |
| 288 | 288 | ||
| 289 | if (!BN_add(l, k, dsa->q) || | 289 | if (!BN_add(l, k, dsa->q) || |
| 290 | !BN_add(m, l, dsa->q) || | 290 | !BN_add(m, l, dsa->q) || |
| 291 | !BN_copy(k, BN_num_bits(l) > q_bits ? l : m)) | 291 | !bn_copy(k, BN_num_bits(l) > q_bits ? l : m)) |
| 292 | goto err; | 292 | goto err; |
| 293 | 293 | ||
| 294 | if (dsa->meth->bn_mod_exp != NULL) { | 294 | if (dsa->meth->bn_mod_exp != NULL) { |
