]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips/sha3: import x/crypto/sha3@750a45fe5e4
authorFilippo Valsorda <filippo@golang.org>
Mon, 30 Sep 2024 14:54:12 +0000 (16:54 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 28 Oct 2024 14:49:43 +0000 (14:49 +0000)
commit7557a24927080557fc9baec62786e8c1d1aaa4b5
treec38da6e65193f1289d3def622a4e5e9a76249b24
parent0138c1abef3871b72e47d5909ce08c9218f61b16
crypto/internal/fips/sha3: import x/crypto/sha3@750a45fe5e4

For now just internally, pending a dedicated proposal for the exposed
package API.

In this CL the code is copied verbatim, for ease of review. Only the
imports were replaced with the corresponding internal ones, and
crypto.RegisterHash calls were disabled. Also, the 0.5MB keccakkats file
was dropped, supplanted by TestCSHAKEAccumulated and ACVP tests.

Updates #65269
Updates #69982
For #69536

Change-Id: Ia4735b50c99b9573a5c4889733c4a119930fe658
Reviewed-on: https://go-review.googlesource.com/c/go/+/616717
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
18 files changed:
src/crypto/internal/fips/sha3/_asm/go.mod [new file with mode: 0644]
src/crypto/internal/fips/sha3/_asm/go.sum [new file with mode: 0644]
src/crypto/internal/fips/sha3/_asm/keccakf_amd64_asm.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/allocations_test.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/doc.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/hashes.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/hashes_noasm.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/keccakf.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/keccakf_amd64.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/keccakf_amd64.s [new file with mode: 0644]
src/crypto/internal/fips/sha3/sha3.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/sha3_s390x.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/sha3_s390x.s [new file with mode: 0644]
src/crypto/internal/fips/sha3/sha3_test.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/shake.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/shake_noasm.go [new file with mode: 0644]
src/crypto/internal/fips/sha3/testdata/keccakKats.json.deflate [new file with mode: 0644]
src/go/build/deps_test.go