chacha_noasm.go 405 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. //go:build (!arm64 && !s390x && !ppc64le) || !gc || purego
  5. // +build !arm64,!s390x,!ppc64le !gc purego
  6. package chacha20
  7. const bufSize = blockSize
  8. func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) {
  9. s.xorKeyStreamBlocksGeneric(dst, src)
  10. }