Skip to content

Commit 0f42f77

Browse files
committed
examples
1 parent f30931d commit 0f42f77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sign.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
31
package kinesis
42

53
import (
@@ -25,6 +23,9 @@ const (
2523

2624
var lf = []byte{'\n'}
2725

26+
// Sign API request by
27+
// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html
28+
2829
func (k *Auth) sign(s *Service, t time.Time) []byte {
2930
h := ghmac([]byte("AWS4"+k.SecretKey), []byte(t.Format(iSO8601BasicFormatShort)))
3031
h = ghmac(h, []byte(s.Region))

0 commit comments

Comments
 (0)