Skip to content

Commit 2118921

Browse files
committed
pkg/crypto/hmac: fix package documentation
Change-Id: I655aa7a95e36ffea34f5409d533bb070565317f5 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9683 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
1 parent 1f1c3f6 commit 2118921

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/crypto/hmac/hmac.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 CUE Authors
1+
// Copyright 2021 CUE Authors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,6 +11,12 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
15+
// Package hmac implements the Keyed-Hash Message Authentication Code (HMAC) as
16+
// defined in U.S. Federal Information Processing Standards Publication 198.
17+
//
18+
// An HMAC is a cryptographic hash that uses a key to sign a message.
19+
// The receiver verifies the hash by recomputing it using the same key.
1420
package hmac
1521

1622
import (

0 commit comments

Comments
 (0)