X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fpem%2Fpvkfmt.c;h=609e3ad9ca417e7b7efa57777939a3d5ce1d9901;hb=51e236df41871871dabd2f5f7156e27a0eef3b3b;hp=e39c2438140d05e0da9b6f29d248cb29fce5e0ff;hpb=4bdab2571782393e4ba3acb8578c415ce1575a75;p=oweals%2Fopenssl.git diff --git a/crypto/pem/pvkfmt.c b/crypto/pem/pvkfmt.c index e39c243814..609e3ad9ca 100644 --- a/crypto/pem/pvkfmt.c +++ b/crypto/pem/pvkfmt.c @@ -274,6 +274,9 @@ static EVP_PKEY *b2i_dss(const unsigned char **in, if (!read_lebn(&p, 20, &priv_key)) goto memerr; + /* Set constant time flag before public key calculation */ + BN_set_flags(priv_key, BN_FLG_CONSTTIME); + /* Calculate public key */ pub_key = BN_new(); if (pub_key == NULL)