|
2 | 2 | // Use of this source code is governed by a BSD-style |
3 | 3 | // license that can be found in the LICENSE file. |
4 | 4 |
|
5 | | -/* |
6 | | -Package auth authenticates a message using a secret key. |
7 | | -
|
8 | | -The Sum function, viewed as a function of the message for a uniform random |
9 | | -key, is designed to meet the standard notion of unforgeability. This means |
10 | | -that an attacker cannot find authenticators for any messages not authenticated |
11 | | -by the sender, even if the attacker has adaptively influenced the messages |
12 | | -authenticated by the sender. For a formal definition see, e.g., Section 2.4 |
13 | | -of Bellare, Kilian, and Rogaway, "The security of the cipher block chaining |
14 | | -message authentication code," Journal of Computer and System Sciences 61 (2000), |
15 | | -362–399; http://www-cse.ucsd.edu/~mihir/papers/cbc.html. |
16 | | -
|
17 | | -auth does not make any promises regarding "strong" unforgeability; perhaps |
18 | | -one valid authenticator can be converted into another valid authenticator for |
19 | | -the same message. NaCl also does not make any promises regarding "truncated |
20 | | -unforgeability." |
21 | | -
|
22 | | -This package is interoperable with NaCl: https://nacl.cr.yp.to/auth.html. |
23 | | -*/ |
| 5 | +// Package auth authenticates a message using a secret key. |
| 6 | +// |
| 7 | +// This package is interoperable with [NaCl]. |
| 8 | +// |
| 9 | +// The auth package is essentially a wrapper for HMAC-SHA-512 (implemented by |
| 10 | +// crypto/hmac and crypto/sha512), truncated to 32 bytes. It is [frozen] and is |
| 11 | +// not accepting new features. |
| 12 | +// |
| 13 | +// [NaCl]: https://nacl.cr.yp.to/auth.html |
| 14 | +// [frozen]: https://go.dev/wiki/Frozen |
24 | 15 | package auth |
25 | 16 |
|
26 | 17 | import ( |
|
0 commit comments