]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix register usage comment in ARMv8 Montgomery sqr asm. master
authorfengpengbo <feng.pengbo@zte.com.cn>
Thu, 18 Dec 2025 06:45:39 +0000 (14:45 +0800)
committerNeil Horman <nhorman@openssl.org>
Wed, 24 Dec 2025 23:32:54 +0000 (18:32 -0500)
commit7a53925198d2741a619a635048dce0095935168f
treed7071d2d9ebd9c871b7af8c5a09aa47fada984aa
parenta11b5ae0d2481d5ab4d6275dcef0ec08131360c6
Fix register usage comment in ARMv8 Montgomery sqr asm.
In the bn_sqr8x_mont function, a comment describing the accumulation step for the partial product a[1]*a[0] incorrectly referenced the low part ('lo') of the product. The value being added to the temporary register t[2] is actually the high part ('hi') of that multiplication.
Correct the comment from "t[2]+lo(a[1]*a[0])" to "t[2]+hi(a[1]*a[0])".

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/29436)
crypto/bn/asm/armv8-mont.pl