...
Source file src/pkg/vendor/golang.org/x/crypto/internal/chacha20/chacha_s390x.go
1
2
3
4
5
6
7 package chacha20
8
9 import (
10 "golang.org/x/sys/cpu"
11 )
12
13 var haveAsm = cpu.S390X.HasVX
14
15 const bufSize = 256
16
17
18
19
20
21 func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32, buf *[256]byte, len *int)
22
23 func (c *Cipher) xorKeyStreamAsm(dst, src []byte) {
24 xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter, &c.buf, &c.len)
25 }
26
27
28 func mvcSrcToBuf()
29 func mvcBufToDst()
30
View as plain text