diff options
author | Samuel Weiser <samuel.weiser@iaik.tugraz.at> | 2017-09-16 16:52:44 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-09-27 10:09:39 +0100 |
commit | a8e047a819b8f8bf8699e0bbfc838e1f23e82051 (patch) | |
tree | 6b4c8cb0dda67ccc2cc92576cc5a5d376797652f /crypto/bn/bn_mont.c | |
parent | d32bf5494098b4a4bca075640c4c96d2cee1b4f0 (diff) |
BN_copy now propagates BN_FLG_CONSTTIME
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4377)
(cherry picked from commit 9f9442918aeaed5dc2442d81ab8d29fe3e1fb906)
Diffstat (limited to 'crypto/bn/bn_mont.c')
-rw-r--r-- | crypto/bn/bn_mont.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index 90e1ba296e..faea4684fa 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 |