From 9719640e347eb5a6a53d3e8f293839552436422d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 6 Aug 2018 18:00:10 -0700 Subject: [PATCH] Use sha256-simd instead of crypto/sha256 (#6252) --- cmd/bitrot.go | 2 +- cmd/gateway/sia/gateway-sia.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/bitrot.go b/cmd/bitrot.go index 891583b8e..e90e80b3c 100644 --- a/cmd/bitrot.go +++ b/cmd/bitrot.go @@ -18,12 +18,12 @@ package cmd import ( "context" - "crypto/sha256" "errors" "hash" "github.com/minio/highwayhash" "github.com/minio/minio/cmd/logger" + "github.com/minio/sha256-simd" "golang.org/x/crypto/blake2b" ) diff --git a/cmd/gateway/sia/gateway-sia.go b/cmd/gateway/sia/gateway-sia.go index 5ce0a067c..f2d2f49dd 100644 --- a/cmd/gateway/sia/gateway-sia.go +++ b/cmd/gateway/sia/gateway-sia.go @@ -19,7 +19,6 @@ package sia import ( "bytes" "context" - "crypto/sha256" "encoding/hex" "encoding/json" "fmt" @@ -40,6 +39,7 @@ import ( "github.com/minio/minio/cmd/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/hash" + "github.com/minio/sha256-simd" ) const (