Use sha256-simd instead of crypto/sha256 (#6252)

master
Harshavardhana 6 years ago committed by kannappanr
parent ce02ab613d
commit 9719640e34
  1. 2
      cmd/bitrot.go
  2. 2
      cmd/gateway/sia/gateway-sia.go

@ -18,12 +18,12 @@ package cmd
import ( import (
"context" "context"
"crypto/sha256"
"errors" "errors"
"hash" "hash"
"github.com/minio/highwayhash" "github.com/minio/highwayhash"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/cmd/logger"
"github.com/minio/sha256-simd"
"golang.org/x/crypto/blake2b" "golang.org/x/crypto/blake2b"
) )

@ -19,7 +19,6 @@ package sia
import ( import (
"bytes" "bytes"
"context" "context"
"crypto/sha256"
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt" "fmt"
@ -40,6 +39,7 @@ import (
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/hash" "github.com/minio/minio/pkg/hash"
"github.com/minio/sha256-simd"
) )
const ( const (

Loading…
Cancel
Save