File 0001-Add-a-constant-time-flag-to-one-of-the-bignums-to-av.patch of Package openssl-1_1 (Revision fa4927fa3746fade396a18850cf184ba)
Currently displaying revision fa4927fa3746fade396a18850cf184ba , Show latest
xxxxxxxxxx
1
From 26d7fce13d469f8d1a1b42131467ed4a65f8137b Mon Sep 17 00:00:00 2001
2
From: Pauli <paul.dale@oracle.com>
3
Date: Thu, 1 Nov 2018 08:44:11 +1000
4
Subject: [PATCH] Add a constant time flag to one of the bignums to avoid a
5
timing leak.
6
7
Reviewed-by: Tim Hudson <tjh@openssl.org>
8
(Merged from https://github.com/openssl/openssl/pull/7549)
9
10
(cherry picked from commit 00496b6423605391864fbbd1693f23631a1c5239)
11
---
12
crypto/dsa/dsa_ossl.c | 1 +
13
1 file changed, 1 insertion(+)
14
15
diff --git a/crypto/dsa/dsa_ossl.c b/crypto/dsa/dsa_ossl.c
16
index be58625db3..868283ac63 100644
17
--- a/crypto/dsa/dsa_ossl.c
18
+++ b/crypto/dsa/dsa_ossl.c
19
20
} while (BN_is_zero(k));
21
22
BN_set_flags(k, BN_FLG_CONSTTIME);
23
+ BN_set_flags(l, BN_FLG_CONSTTIME);
24
25
if (dsa->flags & DSA_FLAG_CACHE_MONT_P) {
26
if (!BN_MONT_CTX_set_locked(&dsa->method_mont_p,
27
--
28
2.19.1
29
30