From 9f9442918aeaed5dc2442d81ab8d29fe3e1fb906 Mon Sep 17 00:00:00 2001 From: Samuel Weiser Date: Sat, 16 Sep 2017 16:52:44 +0200 Subject: BN_copy now propagates BN_FLG_CONSTTIME Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/4377) --- crypto/bn/bn_mont.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'crypto/bn/bn_mont.c') diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index 0985de2d82..975689432a 100644 --- a/crypto/bn/bn_mont.c +++ b/crypto/bn/bn_mont.c @@ -258,8 +258,6 @@ int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) R = &(mont->RR); /* grab RR as a temp */ if (!BN_copy(&(mont->N), mod)) goto err; /* Set N */ - if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) - BN_set_flags(&(mont->N), BN_FLG_CONSTTIME); mont->N.neg = 0; #ifdef MONT_WORD -- cgit v1.2.3