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,!gccgo,!appengine
10 "golang.org/x/sys/cpu"
13 var haveAsm = cpu.S390X.HasVX
17 // xorKeyStreamVX is an assembly implementation of XORKeyStream. It must only
18 // be called when the vector facility is available.
19 // Implementation in asm_s390x.s.
21 func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32, buf *[256]byte, len *int)
23 func (c *Cipher) xorKeyStreamAsm(dst, src []byte) {
24 xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter, &c.buf, &c.len)
27 // EXRL targets, DO NOT CALL!