Skip to content

Commit 8d77cc1

Browse files
committed
deps: float 26d7fce1 from openssl (CVE-2018-0734 follow-on)
The fix for CVE-2018-0734, floated in 213c7d2, failed to include a constant-time calculation for one of the variables. This introduces a fix for that. Ref: openssl/openssl#7549 Ref: nodejs#24353 Upstream: openssl/openssl@26d7fce1 Original commit message: Add a constant time flag to one of the bignums to avoid a timing leak. Reviewed-by: Tim Hudson <[email protected]> (Merged from openssl/openssl#7549) (cherry picked from commit 00496b6423605391864fbbd1693f23631a1c5239)
1 parent 114ab64 commit 8d77cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/openssl/openssl/crypto/dsa/dsa_ossl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
295295

296296
if ((dsa->flags & DSA_FLAG_NO_EXP_CONSTTIME) == 0) {
297297
BN_set_flags(&k, BN_FLG_CONSTTIME);
298+
BN_set_flags(&l, BN_FLG_CONSTTIME);
298299
}
299300

300-
301301
if (dsa->flags & DSA_FLAG_CACHE_MONT_P) {
302302
if (!BN_MONT_CTX_set_locked(&dsa->method_mont_p,
303303
CRYPTO_LOCK_DSA, dsa->p, ctx))

0 commit comments

Comments
 (0)