diff options
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_key.c')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_key.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_key.c b/src/lib/libcrypto/dsa/dsa_key.c index fc4eb9c433..cb95e1369c 100644 --- a/src/lib/libcrypto/dsa/dsa_key.c +++ b/src/lib/libcrypto/dsa/dsa_key.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_key.c,v 1.22 2016/06/30 02:02:06 bcook Exp $ */ | 1 | /* $OpenBSD: dsa_key.c,v 1.23 2017/01/21 09:38:59 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -65,6 +65,7 @@ | |||
65 | 65 | ||
66 | #include <openssl/bn.h> | 66 | #include <openssl/bn.h> |
67 | #include <openssl/dsa.h> | 67 | #include <openssl/dsa.h> |
68 | #include "bn_lcl.h" | ||
68 | 69 | ||
69 | static int dsa_builtin_keygen(DSA *dsa); | 70 | static int dsa_builtin_keygen(DSA *dsa); |
70 | 71 | ||
@@ -108,7 +109,7 @@ dsa_builtin_keygen(DSA *dsa) | |||
108 | 109 | ||
109 | BN_with_flags(&prk, priv_key, BN_FLG_CONSTTIME); | 110 | BN_with_flags(&prk, priv_key, BN_FLG_CONSTTIME); |
110 | 111 | ||
111 | if (!BN_mod_exp(pub_key, dsa->g, &prk, dsa->p, ctx)) | 112 | if (!BN_mod_exp_ct(pub_key, dsa->g, &prk, dsa->p, ctx)) |
112 | goto err; | 113 | goto err; |
113 | } | 114 | } |
114 | 115 | ||