Skip to content

Commit 26d7fce

Browse files
committed
Add a constant time flag to one of the bignums to avoid a timing leak.
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from #7549) (cherry picked from commit 00496b6)
1 parent 003f1bf commit 26d7fce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crypto/dsa/dsa_ossl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in,
225225
} while (BN_is_zero(k));
226226

227227
BN_set_flags(k, BN_FLG_CONSTTIME);
228+
BN_set_flags(l, BN_FLG_CONSTTIME);
228229

229230
if (dsa->flags & DSA_FLAG_CACHE_MONT_P) {
230231
if (!BN_MONT_CTX_set_locked(&dsa->method_mont_p,

0 commit comments

Comments
 (0)