- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getSHA256Sum (0.14 sec)
-
cmd/hasher.go
) // getSHA256Hash returns SHA-256 hash in hex encoding of given data. func getSHA256Hash(data []byte) string { return hex.EncodeToString(getSHA256Sum(data)) } // getSHA256Hash returns SHA-256 sum of given data. func getSHA256Sum(data []byte) []byte { hash := sha256.New() hash.Write(data) return hash.Sum(nil) } // getMD5Sum returns MD5 sum of given data.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 27 13:00:19 UTC 2022 - 1.4K bytes - Viewed (0) -
cmd/xl-storage_test.go
{ volume, "abcd", 14, 1, nil, errFileNotFound, }, } // Create all files needed during testing. appendFiles := testCases[:4] v := NewBitrotVerifier(SHA256, getSHA256Sum([]byte("hello, world"))) // Create test files for further reading. for i, appendFile := range appendFiles { err = xlStorage.AppendFile(context.Background(), volume, appendFile.fileName, []byte("hello, world"))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 66.7K bytes - Viewed (0)