1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

backport: update golang.org/x/crypto vendor to use acme v2 (#9056) (#9085)

This commit is contained in:
techknowlogick
2019-11-20 02:12:47 -05:00
committed by GitHub
parent 261b19ced7
commit 38ce87a61a
52 changed files with 3430 additions and 2943 deletions

View File

@@ -6,10 +6,7 @@
package poly1305
// Sum generates an authenticator for msg using a one-time key and puts the
// 16-byte result into out. Authenticating two different messages with the same
// key allows an attacker to forge messages at will.
func Sum(out *[TagSize]byte, msg []byte, key *[32]byte) {
func sum(out *[TagSize]byte, msg []byte, key *[32]byte) {
h := newMAC(key)
h.Write(msg)
h.Sum(out)