crypto_stream_xor

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

void
crypto_stream_xor
()
(
ubyte[] c
,
const(ubyte)[] msg
,
const(ubyte)[] nonce
,
const(ubyte)[] key
)

Parameters

c ubyte[]

output slice

nonce const(ubyte)[]

nonce

key const(ubyte)[]

secret key

Return Value

Type: void

ciphertext in 'c'

Meta