Documentation ¶ Overview ¶ Package xsalsa20 implements XSalsa20 stream cipher. Index ¶ func Stream(c []byte, n *[24]byte, k *[32]byte) func Xor(c, m []byte, n *[24]byte, k *[32]byte) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Stream ¶ func Stream(c []byte, n *[24]byte, k *[32]byte) Stream generates XSalsa20 stream into the byte slice c from 24-byte nonce n and 32-byte key k. func Xor ¶ func Xor(c, m []byte, n *[24]byte, k *[32]byte) Xor XORs plain-text byte slice m with XSalsa20 stream generated from 24-byte nonce n and 32-byte key k, and puts the result into byte slice c, which must have length equal to or greater than the length of m. Types ¶ This section is empty. Source Files ¶ View all Source files xsalsa20.go Click to show internal directories. Click to hide internal directories.