]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix typo in SHA256 RISC-V64 Zbb comments: Sigma0 -> Sum0
authoryexiaochuan <tap91624@gmail.com>
Wed, 23 Apr 2025 14:28:09 +0000 (22:28 +0800)
committerTomas Mraz <tomas@openssl.org>
Mon, 28 Apr 2025 15:24:53 +0000 (17:24 +0200)
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 <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27480)

crypto/sha/asm/sha256-riscv64-zbb.pl

index bb4ca56ea718fc7deb7c7053dfeceb0c67f0b84f..b561677696992a2a88c54f3e33713dec5cf1111d 100644 (file)
@@ -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