Commit 17891195 authored by ale's avatar ale

Update dependencies (scrypt)

parent c544c4bd
Pipeline #2667 passed with stages
in 2 minutes and 22 seconds
// Package pwhash provides a simple interface to hashed passwords with
// support for multiple hashing algorithms.
//
// The format is the well-known dollar-separated field string,
// extended with optional algorithm-specific parameters:
//
// $id[$params...]$salt$encrypted
//
// We extend 'id' beyond the values supported by the libc crypt(3)
// function with the following hashing algorithms:
//
// Scrypt (id '$s$'), in which case the parameters are N, R and P.
//
// Argon2 (id '$a2$'), with parameters time, memory and threads. To
// tune Argon2 parameters, you can run the benchmarks in this package:
// the parameterized benchmarks are named with
// time/memory(MB)/threads. For nicer results:
//
// go test -bench=Argon2 -run=none . 2>&1 | \
// awk '/^Bench/ {ops=1000000000 / $3; print $1 " " ops " ops/sec"}'
//
package pwhash
import (
......
......@@ -75,19 +75,19 @@ func Sum256(data []byte) [Size256]byte {
}
// New512 returns a new hash.Hash computing the BLAKE2b-512 checksum. A non-nil
// key turns the hash into a MAC. The key must between zero and 64 bytes long.
// key turns the hash into a MAC. The key must be between zero and 64 bytes long.
func New512(key []byte) (hash.Hash, error) { return newDigest(Size, key) }
// New384 returns a new hash.Hash computing the BLAKE2b-384 checksum. A non-nil
// key turns the hash into a MAC. The key must between zero and 64 bytes long.
// key turns the hash into a MAC. The key must be between zero and 64 bytes long.
func New384(key []byte) (hash.Hash, error) { return newDigest(Size384, key) }
// New256 returns a new hash.Hash computing the BLAKE2b-256 checksum. A non-nil
// key turns the hash into a MAC. The key must between zero and 64 bytes long.
// key turns the hash into a MAC. The key must be between zero and 64 bytes long.
func New256(key []byte) (hash.Hash, error) { return newDigest(Size256, key) }
// New returns a new hash.Hash computing the BLAKE2b checksum with a custom length.
// A non-nil key turns the hash into a MAC. The key must between zero and 64 bytes long.
// A non-nil key turns the hash into a MAC. The key must be between zero and 64 bytes long.
// The hash size can be a value between 1 and 64 but it is highly recommended to use
// values equal or greater than:
// - 32 if BLAKE2b is used as a hash function (The key is zero bytes long).
......
......@@ -29,7 +29,7 @@ type XOF interface {
}
// OutputLengthUnknown can be used as the size argument to NewXOF to indicate
// the the length of the output is not known in advance.
// the length of the output is not known in advance.
const OutputLengthUnknown = 0
// magicUnknownOutputLength is a magic value for the output size that indicates
......
......@@ -29,7 +29,7 @@ func blockXOR(dst, src []uint32, n int) {
}
// salsaXOR applies Salsa20/8 to the XOR of 16 numbers from tmp and in,
// and puts the result into both both tmp and out.
// and puts the result into both tmp and out.
func salsaXOR(tmp *[16]uint32, in, out []uint32) {
w0 := tmp[0] ^ in[0]
w1 := tmp[1] ^ in[1]
......
......@@ -27,10 +27,10 @@
"revisionTime": "2019-03-27T08:48:39Z"
},
{
"checksumSHA1": "mfFIqmwojDqQdJvjLI3y7YCQ+2c=",
"checksumSHA1": "JcfbQfBD7HTqjhFYT1gBjbThSI4=",
"path": "git.autistici.org/ai3/go-common/pwhash",
"revision": "2934fd63c275d37b0fe60afabb484a251662bd49",
"revisionTime": "2019-02-17T09:01:06Z"
"revision": "b4364e842290fdecd412056674b471af77663757",
"revisionTime": "2019-04-03T06:59:52Z"
},
{
"checksumSHA1": "y5pRYZ/NhfEOCFslPEuUZTYXcro=",
......@@ -378,26 +378,26 @@
{
"checksumSHA1": "FwW3Vv4jW0Nv7V2SZC7x/Huj5M4=",
"path": "golang.org/x/crypto/argon2",
"revision": "e84da0312774c21d64ee2317962ef669b27ffb41",
"revisionTime": "2018-10-24T13:26:30Z"
"revision": "a5d413f7728c81fb97d96a2b722368945f651e78",
"revisionTime": "2019-03-25T14:57:12Z"
},
{
"checksumSHA1": "ejjxT0+wDWWncfh0Rt3lSH4IbXQ=",
"checksumSHA1": "eaK7NuGdfEVypOnqYniZSuF2S6s=",
"path": "golang.org/x/crypto/blake2b",
"revision": "e84da0312774c21d64ee2317962ef669b27ffb41",
"revisionTime": "2018-10-24T13:26:30Z"
"revision": "a5d413f7728c81fb97d96a2b722368945f651e78",
"revisionTime": "2019-03-25T14:57:12Z"
},
{
"checksumSHA1": "1MGpGDQqnUoRpv7VEcQrXOBydXE=",
"path": "golang.org/x/crypto/pbkdf2",
"revision": "e84da0312774c21d64ee2317962ef669b27ffb41",
"revisionTime": "2018-10-24T13:26:30Z"
"revision": "a5d413f7728c81fb97d96a2b722368945f651e78",
"revisionTime": "2019-03-25T14:57:12Z"
},
{
"checksumSHA1": "sx1nQShs40UKtcJZNJuvYtGesaI=",
"checksumSHA1": "q+Rqy6Spw6qDSj75TGEZF7nzoFM=",
"path": "golang.org/x/crypto/scrypt",
"revision": "e84da0312774c21d64ee2317962ef669b27ffb41",
"revisionTime": "2018-10-24T13:26:30Z"
"revision": "a5d413f7728c81fb97d96a2b722368945f651e78",
"revisionTime": "2019-03-25T14:57:12Z"
},
{
"checksumSHA1": "VhUZFUuhLFSBFUfskMC4am5RIdc=",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment