getSigningKey hmac seed to calculate final signature.
(secret, loc string, t time.Time, serviceType string)
| 66 | |
| 67 | // getSigningKey hmac seed to calculate final signature. |
| 68 | func 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. |
| 77 | func getSignature(signingKey []byte, stringToSign string) string { |
no test coverage detected