mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Add extended checksum support (#15433)
This commit is contained in:
@@ -33,3 +33,6 @@ func New() hash.Hash { return fipssha256.New() }
|
||||
|
||||
// Sum256 returns the SHA256 checksum of the data.
|
||||
func Sum256(data []byte) [fipssha256.Size]byte { return fipssha256.Sum256(data) }
|
||||
|
||||
// Size is the size of a SHA256 checksum in bytes.
|
||||
const Size = fipssha256.Size
|
||||
|
||||
@@ -32,3 +32,6 @@ func New() hash.Hash { return nofipssha256.New() }
|
||||
|
||||
// Sum256 returns the SHA256 checksum of the data.
|
||||
func Sum256(data []byte) [nofipssha256.Size]byte { return nofipssha256.Sum256(data) }
|
||||
|
||||
// Size is the size of a SHA256 checksum in bytes.
|
||||
const Size = nofipssha256.Size
|
||||
|
||||
Reference in New Issue
Block a user