File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ func HashData(kh KeccakState, data []byte) (h common.Hash) {
75
75
// Keccak256 calculates and returns the Keccak256 hash of the input data.
76
76
func Keccak256 (data ... []byte ) []byte {
77
77
b := make ([]byte , 32 )
78
- d := NewKeccakState ( )
78
+ d := sha3 . NewLegacyKeccak256 ().( KeccakState )
79
79
for _ , b := range data {
80
80
d .Write (b )
81
81
}
@@ -86,7 +86,7 @@ func Keccak256(data ...[]byte) []byte {
86
86
// Keccak256Hash calculates and returns the Keccak256 hash of the input data,
87
87
// converting it to an internal Hash data structure.
88
88
func Keccak256Hash (data ... []byte ) (h common.Hash ) {
89
- d := NewKeccakState ( )
89
+ d := sha3 . NewLegacyKeccak256 ().( KeccakState )
90
90
for _ , b := range data {
91
91
d .Write (b )
92
92
}
You can’t perform that action at this time.
0 commit comments