libgo: update to Go 1.11
[official-gcc.git] / libgo / go / golang_org / x / crypto / poly1305 / sum_noasm.go
blob751eec52743ce32579f4716559abf942d1e6c050
1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build s390x,!go1.11 !arm,!amd64,!s390x gccgo appengine nacl
7 package poly1305
9 // Sum generates an authenticator for msg using a one-time key and puts the
10 // 16-byte result into out. Authenticating two different messages with the same
11 // key allows an attacker to forge messages at will.
12 func Sum(out *[TagSize]byte, msg []byte, key *[32]byte) {
13 sumGeneric(out, msg, key)