]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips140: use hash.Hash
authorFilippo Valsorda <filippo@golang.org>
Wed, 21 May 2025 17:41:06 +0000 (19:41 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 21 May 2025 19:20:10 +0000 (12:20 -0700)
commitd327e52d438854acae275cdf9d2c1fe42f037eb8
tree25aff56a365a4c8cb7b5bb1dc2a69fccc9b8e169
parentd6c29c71562df407cc18846efd2e9d8fe0b28960
crypto/internal/fips140: use hash.Hash

Since package hash is just the interface definition, not an
implementation, we can make a good argument that it doesn't impact the
security of the module and can be imported from outside.

For #69521

Change-Id: I6a6a4656b9c3cac8bb9ab8e8df11fa3238dc5d1d
Reviewed-on: https://go-review.googlesource.com/c/go/+/674917
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
14 files changed:
src/crypto/internal/fips140/ecdsa/ecdsa.go
src/crypto/internal/fips140/ecdsa/hmacdrbg.go
src/crypto/internal/fips140/fips140.go
src/crypto/internal/fips140/hash.go [deleted file]
src/crypto/internal/fips140/hkdf/hkdf.go
src/crypto/internal/fips140/hmac/hmac.go
src/crypto/internal/fips140/pbkdf2/pbkdf2.go
src/crypto/internal/fips140/rsa/pkcs1v22.go
src/crypto/internal/fips140/ssh/kdf.go
src/crypto/internal/fips140/tls12/tls12.go
src/crypto/internal/fips140/tls13/tls13.go
src/crypto/internal/fips140test/acvp_test.go
src/crypto/sha3/sha3_test.go
src/go/build/deps_test.go