crypto_stream_salsa20_xor

The crypto_stream_salsa20_xor() function encrypts a message 'msg' using a secret key 'key' and a nonce 'nonce'. The crypto_stream_salsa20_xor() function returns the ciphertext 'output'.

@trusted nothrow @nogc
void
crypto_stream_salsa20_xor
(
ubyte[] output
,
const(ubyte)[] msg
,
const(ubyte)[] nonce
,
const(ubyte)[] key
)

Parameters

output ubyte[]

resulting ciphertext

msg const(ubyte)[]

message

nonce const(ubyte)[]

nonce

key const(ubyte)[]

secret key

Return Value

Type: void

ciphertext in 'output'

Meta