Fix riscv64 carry bug in SM2 modulo reduction

Fixes #28731

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28746)
This commit is contained in:
Bernd Edlinger 2025-10-04 16:20:31 +02:00
parent 01c7958f23
commit 521ae4abf3
1 changed files with 1 additions and 0 deletions

View File

@ -881,6 +881,7 @@ $code.=<<___;
add $t1, $t1, $s6
sltu $c2, $t1, $s6
add $t1, $t1, $c1
sltu $c1, $t1, $c1
add $c1, $c1, $c2
add $t2, $t2, $c1
sltu $c1, $t2, $c1