...

Source file src/golang.org/x/crypto/salsa20/salsa/salsa20_noasm.go

Documentation: golang.org/x/crypto/salsa20/salsa

     1  // Copyright 2019 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  
     5  //go:build !amd64 || purego || !gc
     6  
     7  package salsa
     8  
     9  // XORKeyStream crypts bytes from in to out using the given key and counters.
    10  // In and out must overlap entirely or not at all. Counter
    11  // contains the raw salsa20 counter bytes (both nonce and block counter).
    12  func XORKeyStream(out, in []byte, counter *[16]byte, key *[32]byte) {
    13  	genericXORKeyStream(out, in, counter, key)
    14  }
    15  

View as plain text