libsodium.crypto_secretbox

D language bindings for libsodium's crypto_secretbox.h

Members

Functions

crypto_secretbox
int crypto_secretbox(ubyte* c, const(ubyte)* m, ulong mlen, const(ubyte)* n, const(ubyte)* k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_boxzerobytes
size_t crypto_secretbox_boxzerobytes()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_detached
int crypto_secretbox_detached(ubyte* c, ubyte* mac, const(ubyte)* m, ulong mlen, const(ubyte)* n, const(ubyte)* k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_easy
int crypto_secretbox_easy(ubyte* c, const(ubyte)* m, ulong mlen, const(ubyte)* n, const(ubyte)* k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_keybytes
size_t crypto_secretbox_keybytes()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_keygen
void crypto_secretbox_keygen(ubyte[crypto_secretbox_KEYBYTES] k)

Generate a random keypair to use with crypto_secretbox_* functions

crypto_secretbox_macbytes
size_t crypto_secretbox_macbytes()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_messagebytes_max
size_t crypto_secretbox_messagebytes_max()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_noncebytes
size_t crypto_secretbox_noncebytes()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_open
int crypto_secretbox_open(ubyte* m, const(ubyte)* c, ulong clen, const(ubyte)* n, const(ubyte)* k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_open_detached
int crypto_secretbox_open_detached(ubyte* m, const(ubyte)* c, const(ubyte)* mac, ulong clen, const(ubyte)* n, const(ubyte)* k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_open_easy
int crypto_secretbox_open_easy(ubyte* m, const(ubyte)* c, ulong clen, const(ubyte)* n, const(ubyte)* k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_primitive
const(char)* crypto_secretbox_primitive()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_zerobytes
size_t crypto_secretbox_zerobytes()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Manifest constants

crypto_secretbox_BOXZEROBYTES
enum crypto_secretbox_BOXZEROBYTES;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_KEYBYTES
enum crypto_secretbox_KEYBYTES;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_MACBYTES
enum crypto_secretbox_MACBYTES;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_MESSAGEBYTES_MAX
enum crypto_secretbox_MESSAGEBYTES_MAX;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_NONCEBYTES
enum crypto_secretbox_NONCEBYTES;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_PRIMITIVE
enum crypto_secretbox_PRIMITIVE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
crypto_secretbox_ZEROBYTES
enum crypto_secretbox_ZEROBYTES;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta

License

ISC (see LICENSE.txt)