From f14f59e135725da28e313d7b21a3f6fe40beca37 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 6 Jun 2016 23:37:38 +0000 Subject: Set BN_FLG_CONSTTIME on the correct variable. beck committed wrong fix. Mistake noted by Billy Brumley. Many thanks. --- lib/libssl/src/crypto/dsa/dsa_ossl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libssl') diff --git a/lib/libssl/src/crypto/dsa/dsa_ossl.c b/lib/libssl/src/crypto/dsa/dsa_ossl.c index 13101cea1dc..7e1d494ff36 100644 --- a/lib/libssl/src/crypto/dsa/dsa_ossl.c +++ b/lib/libssl/src/crypto/dsa/dsa_ossl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa_ossl.c,v 1.24 2016/06/06 10:00:04 beck Exp $ */ +/* $OpenBSD: dsa_ossl.c,v 1.25 2016/06/06 23:37:37 tedu Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -282,7 +282,7 @@ dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) } if ((dsa->flags & DSA_FLAG_NO_EXP_CONSTTIME) == 0) { - BN_set_flags(&k, BN_FLG_CONSTTIME); + BN_set_flags(K, BN_FLG_CONSTTIME); } DSA_BN_MOD_EXP(goto err, dsa, r, dsa->g, K, dsa->p, ctx, -- cgit v1.2.3