summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_ossl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_ossl.c')
-rw-r--r--src/lib/libcrypto/dsa/dsa_ossl.c6
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) {