]> Cypherpunks repositories - gostls13.git/commit
crypto/pbkdf2: init package
authorDaniel McCarney <daniel@binaryparadox.net>
Thu, 14 Nov 2024 18:38:14 +0000 (13:38 -0500)
committerFilippo Valsorda <filippo@golang.org>
Thu, 21 Nov 2024 20:38:05 +0000 (20:38 +0000)
commit6a7733af45493ddc1ededd2d0545004102c811a2
tree8a8e76d41b616c8f772e2451b7fd8c2ae4b67c41
parenta86ea80197ed3bf0f276638a9ce079cbd2071d83
crypto/pbkdf2: init package

This commit imports the x/crypto/pbkdf2 package as described in the
linked proposal. The code is unchanged with the exception of a few
small updates to reflect feedback from the proposal comment period:

* the Key function is made generic over a hash.Hash
* the h function is moved to be the first argument
* keyLen is renamed to keyLength
* an error return is added
* the unit tests were moved to the pbkdf2_test package

Updates #69488

Change-Id: If72f854daeb65a5c7fbe45ebd341e63a33340624
Reviewed-on: https://go-review.googlesource.com/c/go/+/628135
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
api/next/69488.txt [new file with mode: 0644]
doc/next/6-stdlib/2-pbkdf2.md [new file with mode: 0644]
doc/next/6-stdlib/99-minor/crypto/pbkdf2/69488.md [new file with mode: 0644]
src/crypto/pbkdf2/pbkdf2.go [new file with mode: 0644]
src/crypto/pbkdf2/pbkdf2_test.go [new file with mode: 0644]
src/go/build/deps_test.go