mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/pbkdf2: add missing error return value in example
This function returns two values, one was missing in the example.
Change-Id: I738597f959011260f666c29b7d3ffad8e5cdc473
GitHub-Last-Rev: 5d99e04f7e
GitHub-Pull-Request: golang/go#76032
Reviewed-on: https://go-review.googlesource.com/c/go/+/714420
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
This commit is contained in:
parent
47bf8f073e
commit
dfac972233
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ import (
|
|||
// can get a derived key for e.g. AES-256 (which needs a 32-byte key) by
|
||||
// doing:
|
||||
//
|
||||
// dk := pbkdf2.Key(sha1.New, "some password", salt, 4096, 32)
|
||||
// dk, err := pbkdf2.Key(sha1.New, "some password", salt, 4096, 32)
|
||||
//
|
||||
// Remember to get a good random salt. At least 8 bytes is recommended by the
|
||||
// RFC.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue