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

Function sumHMAC

pkg/signer/utils.go:38–42  ·  view source on GitHub ↗

sumHMAC calculate hmac between two input byte array.

(key, data []byte)

Source from the content-addressed store, hash-verified

36
37// sumHMAC calculate hmac between two input byte array.
38func sumHMAC(key, data []byte) []byte {
39 hash := hmac.New(sha256.New, key)
40 hash.Write(data)
41 return hash.Sum(nil)
42}
43
44// getHostAddr returns host header if available, otherwise returns host from URL
45func getHostAddr(req *http.Request) string {

Callers 2

getSigningKeyFunction · 0.85
getSignatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected