aboutsummaryrefslogtreecommitdiff
path: root/crypto/pem/pvkfmt.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2019-09-10 17:42:17 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2019-09-10 17:42:17 +0000
commit1da9a06f2daf1285fb82196ec2995c9c32a2e51c (patch)
tree7b9b5f2e1bdf224eb819a0d78f13d0b50f9ca637 /crypto/pem/pvkfmt.c
parent10d08b8de39401736faf1f37a8c6121cdd6814c8 (diff)
Import OpenSSL 1.0.2t.vendor/openssl/1.0.2t
Notes
Notes: svn path=/vendor-crypto/openssl/dist-1.0.2/; revision=352165 svn path=/vendor-crypto/openssl/1.0.2t/; revision=352166; tag=vendor/openssl/1.0.2t
Diffstat (limited to 'crypto/pem/pvkfmt.c')
-rw-r--r--crypto/pem/pvkfmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/pem/pvkfmt.c b/crypto/pem/pvkfmt.c
index f376f594b12d..9ea21e3c74bb 100644
--- a/crypto/pem/pvkfmt.c
+++ b/crypto/pem/pvkfmt.c
@@ -3,7 +3,7 @@
* 2005.
*/
/* ====================================================================
- * Copyright (c) 2005-2018 The OpenSSL Project. All rights reserved.
+ * Copyright (c) 2005-2019 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -327,6 +327,8 @@ static EVP_PKEY *b2i_dss(const unsigned char **in, unsigned int length,
} else {
if (!read_lebn(&p, 20, &dsa->priv_key))
goto memerr;
+ /* Set constant time flag before public key calculation */
+ BN_set_flags(dsa->priv_key, BN_FLG_CONSTTIME);
/* Calculate public key */
if (!(dsa->pub_key = BN_new()))
goto memerr;