Skip to content

Commit 10ca5ba

Browse files
FiloSottilegopherbot
authored andcommitted
crypto/pbkdf2: update RFC reference in package doc
Now that it's published, we don't need to explain how we diverge from the old one. Change-Id: If2c22e89dd1b9fc531a363b5fb7b1eb5720eb84e Reviewed-on: https://go-review.googlesource.com/c/go/+/637215 Auto-Submit: Filippo Valsorda <[email protected]> Reviewed-by: Daniel McCarney <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 8ff4cee commit 10ca5ba

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

src/crypto/pbkdf2/pbkdf2.go

+6-14
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,12 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
/*
6-
Package pbkdf2 implements the key derivation function PBKDF2 as defined in RFC
7-
2898 / PKCS #5 v2.0.
8-
9-
A key derivation function is useful when encrypting data based on a password
10-
or any other not-fully-random data. It uses a pseudorandom function to derive
11-
a secure encryption key based on the password.
12-
13-
While v2.0 of the standard defines only one pseudorandom function to use,
14-
HMAC-SHA1, the drafted v2.1 specification allows use of all five FIPS Approved
15-
Hash Functions SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 for HMAC. To
16-
choose, you can pass the `New` functions from the different SHA packages to
17-
pbkdf2.Key.
18-
*/
5+
// Package pbkdf2 implements the key derivation function PBKDF2 as defined in
6+
// RFC 8018 (PKCS #5 v2.1).
7+
//
8+
// A key derivation function is useful when encrypting data based on a password
9+
// or any other not-fully-random data. It uses a pseudorandom function to derive
10+
// a secure encryption key based on the password.
1911
package pbkdf2
2012

2113
import (

0 commit comments

Comments
 (0)