Add an extra reduction step to RSAZ mod_exp implementations
authorTomas Mraz <tomas@openssl.org>
Thu, 9 Jun 2022 14:20:05 +0000 (16:20 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 16 Jun 2022 13:22:35 +0000 (15:22 +0200)
commit6d702cebfce3ffd9d8c0cb2af80a987d3288e7a3
treeed3f3a084d21568c6b3853828e39ddaed21a60be
parent0ae365e1f80648f4c52aa3ac9bbc279b6192b23e
Add an extra reduction step to RSAZ mod_exp implementations

Inspired by BoringSSL fix by David Benjamin.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18510)
crypto/bn/rsaz_exp.c
crypto/bn/rsaz_exp.h
crypto/bn/rsaz_exp_x2.c
test/recipes/10-test_bn_data/bnmod.txt