github.com/icodeface/tls@v0.0.0-20230910023335-34df9250cd12/internal/x/crypto/poly1305/sum_noasm.go (about)

     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.
     4  
     5  // +build s390x,!go1.11 !arm,!amd64,!s390x gccgo appengine nacl
     6  
     7  package poly1305
     8  
     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)
    14  }