Switch over to sha256-simd (#3125)

This commit is contained in:
terence tsao
2019-08-02 14:42:59 -07:00
committed by GitHub
parent 953c59a302
commit 0beb919fc0
4 changed files with 4 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"@com_github_gogo_protobuf//proto:go_default_library",
"@com_github_minio_sha256_simd//:go_default_library",
"@org_golang_x_crypto//sha3:go_default_library",
],
)

View File

@@ -1,11 +1,11 @@
package hashutil
import (
"crypto/sha256"
"errors"
"reflect"
"github.com/gogo/protobuf/proto"
"github.com/minio/sha256-simd"
"golang.org/x/crypto/sha3"
)

View File

@@ -15,6 +15,7 @@ go_library(
"//proto/eth/v1alpha1:go_default_library",
"//shared/bls:go_default_library",
"//shared/params:go_default_library",
"@com_github_minio_sha256_simd//:go_default_library",
"@com_github_pborman_uuid//:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_prysmaticlabs_go_ssz//:go_default_library",

View File

@@ -22,7 +22,6 @@ import (
"bytes"
"crypto/aes"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"errors"
@@ -32,6 +31,7 @@ import (
"path/filepath"
"strings"
"github.com/minio/sha256-simd"
"github.com/pborman/uuid"
"github.com/prysmaticlabs/prysm/shared/bls"
"golang.org/x/crypto/pbkdf2"