We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30931d commit 0f42f77Copy full SHA for 0f42f77
sign.go
@@ -1,5 +1,3 @@
1
-// Package aws4 signs HTTP requests as prescribed in
2
-// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html
3
package kinesis
4
5
import (
@@ -25,6 +23,9 @@ const (
25
23
26
24
var lf = []byte{'\n'}
27
+// Sign API request by
+// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html
28
+
29
func (k *Auth) sign(s *Service, t time.Time) []byte {
30
h := ghmac([]byte("AWS4"+k.SecretKey), []byte(t.Format(iSO8601BasicFormatShort)))
31
h = ghmac(h, []byte(s.Region))
0 commit comments