rsa: fix bn_reduce_once_in_place call for rsaz_mod_exp_avx512_x2
authorXi Ruoyao <xry111@xry111.site>
Wed, 22 Jun 2022 10:07:05 +0000 (18:07 +0800)
committerPauli <pauli@openssl.org>
Thu, 23 Jun 2022 02:51:36 +0000 (12:51 +1000)
commit4d8a88c134df634ba610ff8db1eb8478ac5fd345
tree6c4bb89019b06af506f753218233db47b3a5c774
parenteea820f3e239a4c11d618741fd5d00a6bc877347
rsa: fix bn_reduce_once_in_place call for rsaz_mod_exp_avx512_x2

bn_reduce_once_in_place expects the number of BN_ULONG, but factor_size
is moduli bit size.

Fixes #18625.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18626)
crypto/bn/rsaz_exp_x2.c