]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips/pbkdf2: fips import pbkdf2
authorDaniel McCarney <daniel@binaryparadox.net>
Thu, 14 Nov 2024 19:09:13 +0000 (14:09 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 22 Nov 2024 00:00:19 +0000 (00:00 +0000)
commit5d115c30f66fcd02f04dd823fe9830b876da1e8b
treeec090303c0a813fce385cc2a8f7b28b5a1180527
parenta276c811a7c906d94ed5e468a17d277400e4e94b
crypto/internal/fips/pbkdf2: fips import pbkdf2

This commit lifts the internals of crypto/pbkdf2 into
crypto/internal/fips140/pbkdf2, in the FIPS module. The code
remains unchanged except for the following adjustments:

* The hash and hmac imports now come from the FIPS equivalents.
* The FIPS service indicator status is set based on the SP 800-132
  requirements for PBKDF2.

For #69536

Change-Id: I61f47a652cef10505a5b40a70be5240b161a97ba
Reviewed-on: https://go-review.googlesource.com/c/go/+/619236
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Derek Parker <parkerderek86@gmail.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/internal/fips140/hkdf/hkdf.go
src/crypto/internal/fips140/hmac/hmac.go
src/crypto/internal/fips140/pbkdf2/pbkdf2.go [new file with mode: 0644]
src/crypto/pbkdf2/pbkdf2.go
src/crypto/pbkdf2/pbkdf2_test.go
src/go/build/deps_test.go