Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed May 13, 2024
1 parent 863dcc9 commit f555ad2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
### Desc

* A Go package that get data digest hash
* hashs has MD2/MD4/MD5/Hmac/Ripemd160/SHA1/SHA3/SHA256/SM3/Xxhash/Gost etc.
* hashs has some MD2/MD4/MD5/Hmac/Ripemd160/SHA1/SHA3/SHA256/SM3/Xxhash/Gost etc


### Download
Expand Down Expand Up @@ -50,7 +50,7 @@ func main() {
ToHexString() // output data

// =============

var pass []byte = []byte("...")

// HmacSHA1 获取摘要
Expand Down
3 changes: 1 addition & 2 deletions lyra2re/sum.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ func Sum(data []byte) ([]byte, error) {
lyra2Result := make([]byte, 32)
Lyra2(lyra2Result, resultKeccak, resultKeccak, 1, 8, 8)

var skeinResult [32]byte
skein.Sum256(&skeinResult, lyra2Result, nil)
skeinResult := skein.Sum256(lyra2Result, nil)

groestlResult := groestl.Sum256(skeinResult[:])

Expand Down
3 changes: 1 addition & 2 deletions lyra2re2/sum.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ func Sum(data []byte) ([]byte, error) {
lyra2result := make([]byte, 32)
Lyra2(lyra2result, resultcube, resultcube, 1, 4, 4)

var skeinresult [32]byte
skein.Sum256(&skeinresult, lyra2result, nil)
skeinresult := skein.Sum256(lyra2result, nil)

resultcube2 := cubehash256(skeinresult[:])
resultbmw := bmw.Sum256(resultcube2)
Expand Down

0 comments on commit f555ad2

Please sign in to comment.