...

Source file src/vendor/golang.org/x/crypto/poly1305/sum_noasm.go

     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,!ppc64le 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		h := newMAC(key)
    14		h.Write(msg)
    15		h.Sum(out)
    16	}
    17	

View as plain text