replace all "crypto/sha256" with "github.com/minio/sha256-simd" (#5391)

This change replaces all imports of "crypto/sha256" with
"github.com/minio/sha256-simd". The sha256-simd package
is faster on ARM64 (NEON instructions) and can take advantage
of AVX-512 in certain scenarios.

Fixes #5374
This commit is contained in:
Andreas Auernhammer
2018-01-17 19:54:31 +01:00
committed by kannappanr
parent a020a70484
commit d0a43af616
6 changed files with 9 additions and 6 deletions

View File

@@ -19,7 +19,6 @@ package azure
import (
"bytes"
"crypto/rand"
"crypto/sha256"
"encoding/base64"
"encoding/hex"
"encoding/json"
@@ -38,6 +37,7 @@ import (
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/errors"
"github.com/minio/minio/pkg/hash"
sha256 "github.com/minio/sha256-simd"
minio "github.com/minio/minio/cmd"
)