MCPcopy
hub / github.com/minio/minio-go / sum256hex

Function sum256hex

pkg/signer/request-signature-streaming_test.go:46–50  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

44}
45
46func sum256hex(data []byte) string {
47 hash := sha256.New()
48 hash.Write(data)
49 return hex.EncodeToString(hash.Sum(nil))
50}
51
52func TestGetSeedSignature(t *testing.T) {
53 accessKeyID := "AKIAIOSFODNN7EXAMPLE"

Callers 2

TestChunkSignatureFunction · 0.85

Calls 1

EncodeToStringMethod · 0.80

Tested by

no test coverage detected