Skip to content

Commit

Permalink
Add a constant time flag to one of the bignums to avoid a timing leak.
Browse files Browse the repository at this point in the history
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from #7549)
  • Loading branch information
paulidale committed Nov 1, 2018
1 parent 0d1f7ae commit 00496b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/dsa/dsa_ossl.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,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,
Expand Down

0 comments on commit 00496b6

Please sign in to comment.