Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
number571 committed Oct 30, 2024
1 parent 5f35a4f commit bd0f57a
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 120 deletions.
8 changes: 3 additions & 5 deletions pkg/crypto/hashing/hashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ type sSHA512Hasher struct {
}

func NewHasher(pData []byte) IHasher {
h := sha512.New384()
h.Write(pData)
s := h.Sum(nil)
s := sha512.Sum384(pData)
return &sSHA512Hasher{
fHash: s,
fHashStr: encoding.HexEncode(s),
fHash: s[:],
fHashStr: encoding.HexEncode(s[:]),
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/result/badge_codelines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bd0f57a

Please sign in to comment.