| 1 | // Use of this source code is governed by a license |
| 2 | // that can be found in the LICENSE file. |
| 3 | |
| 4 | package poly1305 |
| 5 | |
| 6 | import poly "golang.org/x/crypto/poly1305" |
| 7 | |
| 8 | // Sum generates an authenticator for msg using a one-time key and puts the |
| 9 | // 16-byte result into out. Authenticating two different messages with the same |
| 10 | // key allows an attacker to forge messages at will. |
| 11 | func Sum(out *[TagSize]byte, msg []byte, key *[32]byte) { |
| 12 | poly.Sum(out, msg, key) |
| 13 | } |