crypto_box_open_afternm

The crypto_box_open_afternm() function verifies and decrypts a ciphertext 'c' using a secret key 'key' and a nonce 'nonce'. The crypto_box_open_afternm() function returns the resulting message 'msg'.

bool
crypto_box_open_afternm
()
(
ubyte[] msg
,
const(ubyte)[] c
,
const(ubyte)[] nonce
,
const(ubyte)[] key
)

Parameters

msg ubyte[]

resulting message

c const(ubyte)[]

cyphertext

nonce const(ubyte)[]

nonce

key const(ubyte)[]

secret

Return Value

Type: bool

success flag and resulting message in 'msg'

Meta