From 406ce5909be2d080fa4777c543ebc23d155a96d0 Mon Sep 17 00:00:00 2001 From: yexiaochuan Date: Wed, 23 Apr 2025 22:28:09 +0800 Subject: [PATCH] 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) --- crypto/sha/asm/sha256-riscv64-zbb.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2