// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 && !purego && gc

package salsa

//go:noescape

// salsa2020XORKeyStream is implemented in salsa20_amd64.s.
func salsa2020XORKeyStream(,  *byte,  uint64, ,  *byte)

// XORKeyStream crypts bytes from in to out using the given key and counters.
// In and out must overlap entirely or not at all. Counter
// contains the raw salsa20 counter bytes (both nonce and block counter).
func (,  []byte,  *[16]byte,  *[32]byte) {
	if len() == 0 {
		return
	}
	_ = [len()-1]
	salsa2020XORKeyStream(&[0], &[0], uint64(len()), &[0], &[0])
}