libsodium.utils

D language bindings for libsodium's utils.h

Members

Functions

SODIUM_C99
auto SODIUM_C99(T X)
Undocumented in source. Be warned that the author may not have intended to support it.
_sodium_alloc_init
int _sodium_alloc_init()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_add
void sodium_add(ubyte* a, const(ubyte)* b, size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_allocarray
void* sodium_allocarray(size_t count, size_t size)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_base642bin
int sodium_base642bin(ubyte* bin, size_t bin_maxlen, char* b64, size_t b64_len, char* ignore, size_t* bin_len, char** b64_end, int variant)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_base64_ENCODED_LEN
auto sodium_base64_ENCODED_LEN(T0 BIN_LEN, T1 VARIANT)
Undocumented in source. Be warned that the author may not have intended to support it.
sodium_base64_encoded_len
size_t sodium_base64_encoded_len(size_t bin_len, int variant)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_bin2base64
char* sodium_bin2base64(char* b64, size_t b64_maxlen, ubyte* bin, size_t bin_len, int variant)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_bin2hex
char* sodium_bin2hex(char* hex, size_t hex_maxlen, ubyte* bin, size_t bin_len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_compare
int sodium_compare(const(ubyte)* b1_, const(ubyte)* b2_, size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_free
void sodium_free(void* ptr)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_hex2bin
int sodium_hex2bin(ubyte* bin, size_t bin_maxlen, char* hex, size_t hex_len, char* ignore, size_t* bin_len, char** hex_end)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_increment
void sodium_increment(ubyte* n, size_t nlen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_is_zero
int sodium_is_zero(const(ubyte)* n, size_t nlen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_malloc
void* sodium_malloc(size_t size)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_memcmp
int sodium_memcmp(void* b1_, void* b2_, size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_memzero
void sodium_memzero(void* pnt, size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_mlock
int sodium_mlock(void* addr, size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_mprotect_noaccess
int sodium_mprotect_noaccess(void* ptr)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_mprotect_readonly
int sodium_mprotect_readonly(void* ptr)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_mprotect_readwrite
int sodium_mprotect_readwrite(void* ptr)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_munlock
int sodium_munlock(void* addr, size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_pad
int sodium_pad(size_t* padded_buflen_p, ubyte* buf, size_t unpadded_buflen, size_t blocksize, size_t max_buflen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_stackzero
void sodium_stackzero(size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_sub
void sodium_sub(ubyte* a, const(ubyte)* b, size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_unpad
int sodium_unpad(size_t* unpadded_buflen_p, const(ubyte)* buf, size_t padded_buflen, size_t blocksize)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Manifest constants

sodium_base64_VARIANT_ORIGINAL
enum sodium_base64_VARIANT_ORIGINAL;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_base64_VARIANT_ORIGINAL_NO_PADDING
enum sodium_base64_VARIANT_ORIGINAL_NO_PADDING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_base64_VARIANT_URLSAFE
enum sodium_base64_VARIANT_URLSAFE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sodium_base64_VARIANT_URLSAFE_NO_PADDING
enum sodium_base64_VARIANT_URLSAFE_NO_PADDING;
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)