Commit bc8ae75e authored by Jonathan Rudenberg's avatar Jonathan Rudenberg

Use optimized BLAKE2b implementation

Signed-off-by: default avatarJonathan Rudenberg <jonathan@titanous.com>
parent 9d48b3b0
......@@ -10,9 +10,9 @@ import (
"hash"
"io"
"github.com/devi/blake2/blake2b"
"github.com/devi/blake2/blake2s"
"github.com/devi/chap"
"github.com/minio/blake2b-simd"
"golang.org/x/crypto/curve25519"
)
......@@ -199,7 +199,7 @@ var HashSHA256 HashFunc = hashFn{sha256.New, "SHA256"}
var HashSHA512 HashFunc = hashFn{sha512.New, "SHA512"}
// HashBLAKE2b is the BLAKE2b hash function.
var HashBLAKE2b HashFunc = hashFn{blake2b.New, "BLAKE2b"}
var HashBLAKE2b HashFunc = hashFn{blake2b.New512, "BLAKE2b"}
// HashBLAKE2s is the BLAKE2s hash function.
var HashBLAKE2s HashFunc = hashFn{blake2s.New, "BLAKE2s"}
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