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 (
"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"
)

@ -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 (

Loading…
Cancel
Save