blob: 4635307b8f2990f82e67cfd4e665240948751d39 [file] [log] [blame]
Michael Mundayb49d69b2018-04-25 10:55:48 -04001// 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
Filippo Valsorda2aa609c2020-01-19 20:10:41 -05005// +build !arm64,!s390x,!ppc64le arm64,!go1.11 gccgo purego
Michael Mundayb49d69b2018-04-25 10:55:48 -04006
7package chacha20
8
Filippo Valsorda85e5e332019-07-09 20:00:25 -04009const bufSize = blockSize
Michael Mundayb49d69b2018-04-25 10:55:48 -040010
Filippo Valsorda85e5e332019-07-09 20:00:25 -040011func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) {
12 s.xorKeyStreamBlocksGeneric(dst, src)
Michael Mundayb49d69b2018-04-25 10:55:48 -040013}