Module microsalt::stream [] [src]

Secret-key encryption

crypto_stream primitive KEYBYTES NONCEBYTES
crypto_stream_xsalsa20 XSalsa20/20 32 24

Modules

xsalsa20

Functions

stream

stream() produces a len-byte stream c as a function of a secret key k and a nonce n.

stream_xor

stream_xor() encrypts a message m using a secret key k and a nonce n. The stream_xor() function returns the ciphertext c.