From: yexiaochuan Date: Wed, 23 Apr 2025 14:28:09 +0000 (+0800) Subject: Fix typo in SHA256 RISC-V64 Zbb comments: Sigma0 -> Sum0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=406ce5909be2d080fa4777c543ebc23d155a96d0;p=thirdparty%2Fopenssl.git Fix typo in SHA256 RISC-V64 Zbb comments: Sigma0 -> Sum0 This corrects a misleading comment in sha256-riscv64-zbb.pl. The rotation operation corresponds to the Sum0 function as defined in the FIPS 180-4 standard, not Sigma0. CLA: trivial Reviewed-by: Dmitry Belyavskiy Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27480) --- diff --git a/crypto/sha/asm/sha256-riscv64-zbb.pl b/crypto/sha/asm/sha256-riscv64-zbb.pl index bb4ca56ea71..b5616776969 100644 --- a/crypto/sha/asm/sha256-riscv64-zbb.pl +++ b/crypto/sha/asm/sha256-riscv64-zbb.pl @@ -134,7 +134,7 @@ sub sha256_T2 { $a, $b, $c, ) = @_; my $code=<<___; - # Sigma0 + # Sum0 @{[roriw $T2, $a, 2]} # roriw $T2, $a, 2 @{[roriw $T3, $a, 13]} # roriw $T3, $a, 13 @{[roriw $T4, $a, 22]} # roriw $T4, $a, 22