From bc8ae75ea2f0e6134f7dbd988d21c0af63b87cb9 Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Thu, 14 Jul 2016 12:55:09 -0400 Subject: [PATCH] Use optimized BLAKE2b implementation Signed-off-by: Jonathan Rudenberg --- cipher_suite.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cipher_suite.go b/cipher_suite.go index d07a440..e66f7b5 100644 --- a/cipher_suite.go +++ b/cipher_suite.go @@ -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"}