]> Cypherpunks repositories - gostls13.git/commit
crypto/sha256,crypto/sha512: make assembly structure consistent
authorFilippo Valsorda <filippo@golang.org>
Thu, 19 Sep 2024 18:04:30 +0000 (20:04 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 23 Oct 2024 15:21:09 +0000 (15:21 +0000)
commita7650080302173d2de33ca35da20fc592c5fc0b6
treefaef6039cac6d142485f2f72e9467f88cfb744b1
parent9f26d35fac2958cb6cbaafe676bb438584bcfbd0
crypto/sha256,crypto/sha512: make assembly structure consistent

Ensure separate implementations are implemented in different functions
called from Go, and that they can be turned off from a GODEBUG.

This will be necessary to test implementations separately for #69536.

Change-Id: I3e081deb7abb01b0665265e39c72fd4037dd48b3
Cq-Include-Trybots: luci.golang.try:gotip-linux-arm64-longtest,gotip-linux-amd64-longtest,gotip-linux-ppc64le_power8,gotip-linux-ppc64_power8
Reviewed-on: https://go-review.googlesource.com/c/go/+/614495
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
23 files changed:
src/crypto/sha256/_asm/sha256block_amd64_asm.go
src/crypto/sha256/_asm/sha256block_amd64_avx2.go [new file with mode: 0644]
src/crypto/sha256/_asm/sha256block_amd64_shani.go [new file with mode: 0644]
src/crypto/sha256/fallback_test.go [deleted file]
src/crypto/sha256/sha256block_amd64.go
src/crypto/sha256/sha256block_amd64.s
src/crypto/sha256/sha256block_arm64.go
src/crypto/sha256/sha256block_arm64.s
src/crypto/sha256/sha256block_asm.go [moved from src/crypto/sha256/sha256block_decl.go with 71% similarity]
src/crypto/sha256/sha256block_noasm.go [moved from src/crypto/sha256/sha256block_generic.go with 100% similarity]
src/crypto/sha256/sha256block_ppc64x.go [new file with mode: 0644]
src/crypto/sha256/sha256block_ppc64x.s
src/crypto/sha256/sha256block_s390x.go
src/crypto/sha256/sha256block_s390x.s
src/crypto/sha512/fallback_test.go [deleted file]
src/crypto/sha512/sha512block_arm64.go
src/crypto/sha512/sha512block_arm64.s
src/crypto/sha512/sha512block_asm.go [moved from src/crypto/sha512/sha512block_decl.go with 75% similarity]
src/crypto/sha512/sha512block_noasm.go [moved from src/crypto/sha512/sha512block_generic.go with 100% similarity]
src/crypto/sha512/sha512block_ppc64x.go [new file with mode: 0644]
src/crypto/sha512/sha512block_ppc64x.s
src/crypto/sha512/sha512block_s390x.go
src/crypto/sha512/sha512block_s390x.s