test_box

Helper function for testing.

version(unittest)
void
test_box
(
in ubyte[] msg
,
in ubyte[] boxed_ref
,
in ubyte[] nonce
,
in ubyte[] sk
,
in ubyte[] pk
)

Parameters

msg
Type: ubyte[]

Plaintext.

boxed_ref
Type: ubyte[]

Expected ciphertext with authentication tag.

nonce
Type: ubyte[]

A number unique per (sk, pk) pair.

sk
Type: ubyte[]

Own secret key.

pk
Type: ubyte[]

Public key.

Meta