test_secret_box

Helper function for testing.

version(unittest)
void
test_secret_box
(
in ubyte[] msg
,
in ubyte[] boxed_ref
,
in ubyte[] key
,
in ubyte[] nonce
)

Parameters

msg
Type: ubyte[]

Plaintext.

boxed_ref
Type: ubyte[]

Expected ciphertext with authentication tag.

key
Type: ubyte[]

Symmetric encryption key.

Meta