Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func XORKeyStream ¶
XORKeyStream crypts bytes from in to out using the given key and nonce. It performs the 20 round chacha cipher operation. In and out may be the same slice but otherwise should not overlap. Nonce must be 8 bytes long. Key must be either 10, 16 or 32 byte long (32 bytes is recommended for security purposes).
func XORKeyStream8 ¶
XORKeyStream8 crypts bytes from in to out using the given key and nonce. It performs the 8 round chacha cipher operation. In and out may be the same slice but otherwise should not overlap. Nonce must be 8 bytes long. Key must be either 10, 16 or 32 byte long (32 bytes is recommended for security purposes).
func XORKeyStream12 ¶
XORKeyStream12 crypts bytes from in to out using the given key and nonce. It performs the 12 round chacha cipher operation. In and out may be the same slice but otherwise should not overlap. Nonce must be 8 bytes long. Key must be either 10, 16 or 32 byte long (32 bytes is recommended for security purposes).
Types ¶
This section is empty.