Michael Munday | b49d69b | 2018-04-25 10:55:48 -0400 | [diff] [blame] | 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 | |
Filippo Valsorda | 2aa609c | 2020-01-19 20:10:41 -0500 | [diff] [blame] | 5 | // +build !arm64,!s390x,!ppc64le arm64,!go1.11 gccgo purego |
Michael Munday | b49d69b | 2018-04-25 10:55:48 -0400 | [diff] [blame] | 6 | |
| 7 | package chacha20 |
| 8 | |
Filippo Valsorda | 85e5e33 | 2019-07-09 20:00:25 -0400 | [diff] [blame] | 9 | const bufSize = blockSize |
Michael Munday | b49d69b | 2018-04-25 10:55:48 -0400 | [diff] [blame] | 10 | |
Filippo Valsorda | 85e5e33 | 2019-07-09 20:00:25 -0400 | [diff] [blame] | 11 | func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) { |
| 12 | s.xorKeyStreamBlocksGeneric(dst, src) |
Michael Munday | b49d69b | 2018-04-25 10:55:48 -0400 | [diff] [blame] | 13 | } |