From: Pauli Date: Wed, 31 Oct 2018 22:44:11 +0000 (+1000) Subject: Add a constant time flag to one of the bignums to avoid a timing leak. X-Git-Tag: OpenSSL_1_1_0j~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=26d7fce13d469f8d1a1b42131467ed4a65f8137b;p=oweals%2Fopenssl.git Add a constant time flag to one of the bignums to avoid a timing leak. Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/7549) (cherry picked from commit 00496b6423605391864fbbd1693f23631a1c5239) --- diff --git a/crypto/dsa/dsa_ossl.c b/crypto/dsa/dsa_ossl.c index be58625db3..868283ac63 100644 --- a/crypto/dsa/dsa_ossl.c +++ b/crypto/dsa/dsa_ossl.c @@ -225,6 +225,7 @@ static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, } while (BN_is_zero(k)); BN_set_flags(k, BN_FLG_CONSTTIME); + BN_set_flags(l, BN_FLG_CONSTTIME); if (dsa->flags & DSA_FLAG_CACHE_MONT_P) { if (!BN_MONT_CTX_set_locked(&dsa->method_mont_p,