diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-03-20 20:01:12 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-03-22 14:22:11 +0100 |
commit | 94dc53a3f7549040dd9e61a25485070c14b41c49 (patch) | |
tree | cac04a7d0f56f9c079011d404808afe1ed6d56f2 /crypto/rsa | |
parent | b3d113ed2993801ee643126118ccf6592ad18ef7 (diff) |
Make err_clear_constant_time really constant time
[extended tests]
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8542)
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_ossl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_ossl.c b/crypto/rsa/rsa_ossl.c index 189d3b7a07..e6876de60b 100644 --- a/crypto/rsa/rsa_ossl.c +++ b/crypto/rsa/rsa_ossl.c @@ -479,7 +479,7 @@ static int rsa_ossl_private_decrypt(int flen, const unsigned char *from, goto err; } RSAerr(RSA_F_RSA_OSSL_PRIVATE_DECRYPT, RSA_R_PADDING_CHECK_FAILED); - err_clear_last_constant_time(r >= 0); + err_clear_last_constant_time(1 & ~constant_time_msb(r)); err: BN_CTX_end(ctx); |