mirror of https://github.com/openssl/openssl.git
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:
parent
01c7958f23
commit
521ae4abf3
|
@ -881,6 +881,7 @@ $code.=<<___;
|
||||||
add $t1, $t1, $s6
|
add $t1, $t1, $s6
|
||||||
sltu $c2, $t1, $s6
|
sltu $c2, $t1, $s6
|
||||||
add $t1, $t1, $c1
|
add $t1, $t1, $c1
|
||||||
|
sltu $c1, $t1, $c1
|
||||||
add $c1, $c1, $c2
|
add $c1, $c1, $c2
|
||||||
add $t2, $t2, $c1
|
add $t2, $t2, $c1
|
||||||
sltu $c1, $t2, $c1
|
sltu $c1, $t2, $c1
|
||||||
|
|
Loading…
Reference in New Issue