dcrypt.nacl.box

Undocumented in source.

Public Imports

dcrypt.nacl.secretbox
public import dcrypt.nacl.secretbox;

High level API for asymmetric authenticated encryption. Compatible to http://nacl.cr.yp.to/box.html.

Members

Functions

box
ubyte[] box(ubyte[] msg, ubyte[] nonce, ubyte[] secret_key, ubyte[] public_key)

Encrypt a message using asymmetric cryptography.

box_keypair
ubyte[32] box_keypair(ubyte[] secret_key)

Generate a public key from a secret key.

box_open
ubyte[] box_open(ubyte[] box, ubyte[] nonce, ubyte[] secret_key, ubyte[] public_key)

Decrypts a packet generated by box().

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

Helper function for testing.

Meta