sum_noasm.go 351 B

1234567891011121314
  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. // +build s390x,!go1.11 !amd64,!s390x,!ppc64le gccgo appengine nacl
  5. package poly1305
  6. func sum(out *[TagSize]byte, msg []byte, key *[32]byte) {
  7. h := newMAC(key)
  8. h.Write(msg)
  9. h.Sum(out)
  10. }