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

Function getSigningKey

pkg/signer/request-signature-v4.go:68–74  ·  view source on GitHub ↗

getSigningKey hmac seed to calculate final signature.

(secret, loc string, t time.Time, serviceType string)

Source from the content-addressed store, hash-verified

66
67// getSigningKey hmac seed to calculate final signature.
68func getSigningKey(secret, loc string, t time.Time, serviceType string) []byte {
69 date := sumHMAC([]byte("AWS4"+secret), []byte(t.Format(yyyymmdd)))
70 location := sumHMAC(date, []byte(loc))
71 service := sumHMAC(location, []byte(serviceType))
72 signingKey := sumHMAC(service, []byte("aws4_request"))
73 return signingKey
74}
75
76// getSignature final signature in hexadecimal form.
77func getSignature(signingKey []byte, stringToSign string) string {

Callers 7

PreSignV4Function · 0.85
PreSignV4OutpostsFunction · 0.85
PostPresignSignatureV4Function · 0.85
signV4Function · 0.85
buildChunkSignatureFunction · 0.85
setSeedSignatureMethod · 0.85

Calls 1

sumHMACFunction · 0.85

Tested by

no test coverage detected