aboutsummaryrefslogtreecommitdiff
path: root/argon2/argon2.go
AgeCommit message (Collapse)Author
2025-10-27all: fix some commentscuishuang
Change-Id: I0395c5db6edd7d90f9ec1dadbe881a77c906c732 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/713120 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: Sean Liao <sean@liao.dev> Reviewed-by: Sean Liao <sean@liao.dev> Reviewed-by: Michael Knyszek <mknyszek@google.com>
2022-04-11all: gofmtRuss Cox
Gofmt to update doc comments to the new formatting. For golang/go#51082. Change-Id: I076031b6613691eefbb0f21739366e3fd2011ec9 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/399356 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
2018-03-06argon2: fix typo and code formatting in commentsMark Rushakoff
Change-Id: I31fde79e91dd2f19a688bd62ac421d564634d5b3 GitHub-Last-Rev: caab01d6611a39e8aeb49b3de3c3abcdc759efaa GitHub-Pull-Request: golang/crypto#33 Reviewed-on: https://go-review.googlesource.com/97798 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-06argon2: add Argon2id and update parameter recommendationsAndreas Auernhammer
This change exports the Argon2 variant Argon2id and improves documenation. The following parameter recommendations are added: - Argon2i: time=3 and max. memory for non-interactive scenarios as recommended by the RFC draft https://tools.ietf.org/html/draft-irtf-cfrg-argon2-03#section-9.3 - Argon2id: time=2 and memory=64MB for interactive scenarios as used by libsodium >= 1.0.9 https://download.libsodium.org/doc/password_hashing/the_argon2i_function.html time=1 and max. memory for non-interactive scenarios as recommended by the RFC draft linked above. Fixes golang/go#23602 Change-Id: Ia4d537e6126e5aff1243f2b5579df6bc8edb851a Reviewed-on: https://go-review.googlesource.com/91935 Reviewed-by: Adam Langley <agl@golang.org> Run-TryBot: Adam Langley <agl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-12-31argon2: fix incorrect key derivation if parallelism > 1Andreas Auernhammer
This change fixes an incorrect key derivation if the degree of parallelism is greater than 1. This change adds additional test vectors generated by the https://github.com/P-H-C/phc-winner-argon2 CLI. Fixes golang/go#23200 Change-Id: I8add8382b9e9ebbf9a70493050867c9af4ed6aa7 Reviewed-on: https://go-review.googlesource.com/85055 Reviewed-by: Adam Langley <agl@golang.org> Run-TryBot: Adam Langley <agl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-12-18argon2: add new package implementing the Argon2 PBKDF familyAndreas Auernhammer
This CL adds the package argon2. The argon2 package implements the Argon2 PBKDF family (Argon2i, Argon2d, Argon2id). Argon2 is memory-hard key derivation function and is specified at https://github.com/P-H-C/phc-winner-argon2/blob/master/argon2-specs.pdf It can be used to derive cryptographic keys with high entropy from low entropy passwords. Fixes golang/go#19896 Change-Id: I5b099682a8e3d7569ad18400cebddefc99a7e22f Reviewed-on: https://go-review.googlesource.com/82575 Run-TryBot: Adam Langley <agl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Adam Langley <agl@golang.org>