From 8b4b833b80bd889481235072475505eaa0442e67 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 9 Mar 2023 00:52:04 -0300 Subject: [PATCH] use minio/sha256-simd --- cl/utils/crypto.go | 2 +- cmd/erigon-cl/core/state/state.go | 2 +- core/vm/contracts.go | 2 +- crypto/ecies/ecies_test.go | 2 +- crypto/ecies/params.go | 2 +- p2p/discover/v5wire/crypto_test.go | 2 +- p2p/discover/v5wire/encoding.go | 2 +- p2p/server_test.go | 2 +- turbo/trie/vtree/verkle_utils_test.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cl/utils/crypto.go b/cl/utils/crypto.go index 23104caf2fb..bf2acc47e0d 100644 --- a/cl/utils/crypto.go +++ b/cl/utils/crypto.go @@ -14,7 +14,7 @@ package utils import ( - "crypto/sha256" + "github.com/minio/sha256-simd" "hash" "sync" ) diff --git a/cmd/erigon-cl/core/state/state.go b/cmd/erigon-cl/core/state/state.go index 369a1606b79..65b12e4c2ef 100644 --- a/cmd/erigon-cl/core/state/state.go +++ b/cmd/erigon-cl/core/state/state.go @@ -1,7 +1,7 @@ package state import ( - "crypto/sha256" + "github.com/minio/sha256-simd" "encoding/binary" lru "github.com/hashicorp/golang-lru" diff --git a/core/vm/contracts.go b/core/vm/contracts.go index c3a4beb2327..9227f65f771 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -17,9 +17,9 @@ package vm import ( - "crypto/sha256" "encoding/binary" "errors" + "github.com/minio/sha256-simd" "math/big" "github.com/holiman/uint256" diff --git a/crypto/ecies/ecies_test.go b/crypto/ecies/ecies_test.go index 7aa0339212f..0c0497bca92 100644 --- a/crypto/ecies/ecies_test.go +++ b/crypto/ecies/ecies_test.go @@ -33,7 +33,7 @@ import ( "bytes" "crypto/elliptic" "crypto/rand" - "crypto/sha256" + "github.com/minio/sha256-simd" "encoding/hex" "flag" "fmt" diff --git a/crypto/ecies/params.go b/crypto/ecies/params.go index 0c63c138196..a408fd6fda7 100644 --- a/crypto/ecies/params.go +++ b/crypto/ecies/params.go @@ -37,7 +37,7 @@ import ( "crypto/aes" "crypto/cipher" "crypto/elliptic" - "crypto/sha256" + "github.com/minio/sha256-simd" "crypto/sha512" "fmt" "hash" diff --git a/p2p/discover/v5wire/crypto_test.go b/p2p/discover/v5wire/crypto_test.go index 7f28528c164..76c5677c6ab 100644 --- a/p2p/discover/v5wire/crypto_test.go +++ b/p2p/discover/v5wire/crypto_test.go @@ -20,7 +20,7 @@ import ( "bytes" "crypto/ecdsa" "crypto/elliptic" - "crypto/sha256" + "github.com/minio/sha256-simd" "reflect" "strings" "testing" diff --git a/p2p/discover/v5wire/encoding.go b/p2p/discover/v5wire/encoding.go index 3b8023022c0..b7c7eb31fb6 100644 --- a/p2p/discover/v5wire/encoding.go +++ b/p2p/discover/v5wire/encoding.go @@ -22,7 +22,7 @@ import ( "crypto/cipher" "crypto/ecdsa" crand "crypto/rand" - "crypto/sha256" + "github.com/minio/sha256-simd" "encoding/binary" "errors" "fmt" diff --git a/p2p/server_test.go b/p2p/server_test.go index 1decb3ead07..d4991dee05a 100644 --- a/p2p/server_test.go +++ b/p2p/server_test.go @@ -19,7 +19,7 @@ package p2p import ( "context" "crypto/ecdsa" - "crypto/sha256" + "github.com/minio/sha256-simd" "errors" "io" "math/rand" diff --git a/turbo/trie/vtree/verkle_utils_test.go b/turbo/trie/vtree/verkle_utils_test.go index 6b029f4b1d1..385b79fe6b4 100644 --- a/turbo/trie/vtree/verkle_utils_test.go +++ b/turbo/trie/vtree/verkle_utils_test.go @@ -1,7 +1,7 @@ package vtree import ( - "crypto/sha256" + "github.com/minio/sha256-simd" "math/big" "math/rand" "testing"