You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chacha_arm64.go 448B

12345678910111213141516
  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 go1.11,!gccgo,!purego
  5. package chacha20
  6. const bufSize = 256
  7. //go:noescape
  8. func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
  9. func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) {
  10. xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter)
  11. }