Botan 3.0.0-alpha0
Crypto and TLS for C&
|
Functions | |
size_t | crypto_aead_chacha20poly1305_abytes () |
int | crypto_aead_chacha20poly1305_decrypt (uint8_t m[], unsigned long long *ptext_len, uint8_t unused_secret_nonce[], const uint8_t ctext[], size_t ctext_len, const uint8_t ad[], size_t ad_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_chacha20poly1305_decrypt_detached (uint8_t m[], uint8_t unused_secret_nonce[], const uint8_t ctext[], size_t ctext_len, const uint8_t mac[], const uint8_t ad[], size_t ad_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_chacha20poly1305_encrypt (uint8_t ctext[], unsigned long long *ctext_len, const uint8_t ptext[], size_t ptext_len, const uint8_t ad[], size_t ad_len, const uint8_t unused_secret_nonce[], const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_chacha20poly1305_encrypt_detached (uint8_t ctext[], uint8_t mac[], unsigned long long *mac_len, const uint8_t ptext[], size_t ptext_len, const uint8_t ad[], size_t ad_len, const uint8_t unused_secret_nonce[], const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_aead_chacha20poly1305_ietf_abytes () |
int | crypto_aead_chacha20poly1305_ietf_decrypt (uint8_t ptext[], unsigned long long *ptext_len, uint8_t unused_secret_nonce[], const uint8_t ctext[], size_t ctext_len, const uint8_t ad[], size_t ad_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_chacha20poly1305_ietf_decrypt_detached (uint8_t m[], uint8_t unused_secret_nonce[], const uint8_t ctext[], size_t ctext_len, const uint8_t mac[], const uint8_t ad[], size_t ad_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_chacha20poly1305_ietf_encrypt (uint8_t ctext[], unsigned long long *ctext_len, const uint8_t ptext[], size_t ptext_len, const uint8_t ad[], size_t ad_len, const uint8_t unused_secret_nonce[], const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_chacha20poly1305_ietf_encrypt_detached (uint8_t ctext[], uint8_t mac[], unsigned long long *mac_len, const uint8_t ptext[], size_t ptext_len, const uint8_t ad[], size_t ad_len, const uint8_t unused_secret_nonce[], const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_aead_chacha20poly1305_ietf_keybytes () |
void | crypto_aead_chacha20poly1305_ietf_keygen (uint8_t k[32]) |
size_t | crypto_aead_chacha20poly1305_ietf_messagebytes_max () |
size_t | crypto_aead_chacha20poly1305_ietf_npubbytes () |
size_t | crypto_aead_chacha20poly1305_ietf_nsecbytes () |
size_t | crypto_aead_chacha20poly1305_keybytes () |
void | crypto_aead_chacha20poly1305_keygen (uint8_t k[32]) |
size_t | crypto_aead_chacha20poly1305_messagebytes_max () |
size_t | crypto_aead_chacha20poly1305_npubbytes () |
size_t | crypto_aead_chacha20poly1305_nsecbytes () |
size_t | crypto_aead_xchacha20poly1305_ietf_abytes () |
int | crypto_aead_xchacha20poly1305_ietf_decrypt (uint8_t ptext[], unsigned long long *ptext_len, uint8_t unused_secret_nonce[], const uint8_t ctext[], size_t ctext_len, const uint8_t ad[], size_t ad_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_xchacha20poly1305_ietf_decrypt_detached (uint8_t ptext[], uint8_t unused_secret_nonce[], const uint8_t ctext[], size_t ctext_len, const uint8_t mac[], const uint8_t ad[], size_t ad_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_xchacha20poly1305_ietf_encrypt (uint8_t ctext[], unsigned long long *ctext_len, const uint8_t ptext[], size_t ptext_len, const uint8_t ad[], size_t ad_len, const uint8_t unused_secret_nonce[], const uint8_t nonce[], const uint8_t key[]) |
int | crypto_aead_xchacha20poly1305_ietf_encrypt_detached (uint8_t ctext[], uint8_t mac[], unsigned long long *mac_len, const uint8_t ptext[], size_t ptext_len, const uint8_t ad[], size_t ad_len, const uint8_t unused_secret_nonce[], const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_aead_xchacha20poly1305_ietf_keybytes () |
void | crypto_aead_xchacha20poly1305_ietf_keygen (uint8_t k[32]) |
size_t | crypto_aead_xchacha20poly1305_ietf_messagebytes_max () |
size_t | crypto_aead_xchacha20poly1305_ietf_npubbytes () |
size_t | crypto_aead_xchacha20poly1305_ietf_nsecbytes () |
int | crypto_auth (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
size_t | crypto_auth_bytes () |
int | crypto_auth_hmacsha256 (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
size_t | crypto_auth_hmacsha256_bytes () |
size_t | crypto_auth_hmacsha256_keybytes () |
void | crypto_auth_hmacsha256_keygen (uint8_t k[32]) |
int | crypto_auth_hmacsha256_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
int | crypto_auth_hmacsha512 (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
int | crypto_auth_hmacsha512256 (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
size_t | crypto_auth_hmacsha512256_bytes () |
size_t | crypto_auth_hmacsha512256_keybytes () |
void | crypto_auth_hmacsha512256_keygen (uint8_t k[32]) |
int | crypto_auth_hmacsha512256_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
size_t | crypto_auth_hmacsha512_bytes () |
size_t | crypto_auth_hmacsha512_keybytes () |
void | crypto_auth_hmacsha512_keygen (uint8_t k[32]) |
int | crypto_auth_hmacsha512_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
size_t | crypto_auth_keybytes () |
void | crypto_auth_keygen (uint8_t k[]) |
const char * | crypto_auth_primitive () |
int | crypto_auth_verify (const uint8_t mac[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
int | crypto_box (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t pk[32], const uint8_t sk[32]) |
int | crypto_box_afternm (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_box_beforenm (uint8_t key[], const uint8_t pk[32], const uint8_t sk[32]) |
size_t | crypto_box_beforenmbytes () |
size_t | crypto_box_boxzerobytes () |
int | crypto_box_curve25519xsalsa20poly1305 (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t pk[32], const uint8_t sk[32]) |
int | crypto_box_curve25519xsalsa20poly1305_afternm (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_box_curve25519xsalsa20poly1305_beforenm (uint8_t key[], const uint8_t pk[32], const uint8_t sk[32]) |
size_t | crypto_box_curve25519xsalsa20poly1305_beforenmbytes () |
size_t | crypto_box_curve25519xsalsa20poly1305_boxzerobytes () |
int | crypto_box_curve25519xsalsa20poly1305_keypair (uint8_t pk[32], uint8_t sk[32]) |
size_t | crypto_box_curve25519xsalsa20poly1305_macbytes () |
size_t | crypto_box_curve25519xsalsa20poly1305_messagebytes_max () |
size_t | crypto_box_curve25519xsalsa20poly1305_noncebytes () |
int | crypto_box_curve25519xsalsa20poly1305_open (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t pk[32], const uint8_t sk[32]) |
int | crypto_box_curve25519xsalsa20poly1305_open_afternm (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_box_curve25519xsalsa20poly1305_publickeybytes () |
size_t | crypto_box_curve25519xsalsa20poly1305_secretkeybytes () |
int | crypto_box_curve25519xsalsa20poly1305_seed_keypair (uint8_t pk[32], uint8_t sk[32], const uint8_t seed[32]) |
size_t | crypto_box_curve25519xsalsa20poly1305_seedbytes () |
size_t | crypto_box_curve25519xsalsa20poly1305_zerobytes () |
int | crypto_box_detached (uint8_t ctext[], uint8_t mac[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t pk[32], const uint8_t sk[32]) |
int | crypto_box_detached_afternm (uint8_t ctext[], uint8_t mac[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_box_easy (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t pk[32], const uint8_t sk[32]) |
int | crypto_box_easy_afternm (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_box_keypair (uint8_t pk[32], uint8_t sk[32]) |
size_t | crypto_box_macbytes () |
size_t | crypto_box_messagebytes_max () |
size_t | crypto_box_noncebytes () |
int | crypto_box_open (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t pk[32], const uint8_t sk[32]) |
int | crypto_box_open_afternm (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_box_open_detached (uint8_t ptext[], const uint8_t ctext[], const uint8_t mac[], size_t ctext_len, const uint8_t nonce[], const uint8_t pk[32], const uint8_t sk[32]) |
int | crypto_box_open_detached_afternm (uint8_t ptext[], const uint8_t ctext[], const uint8_t mac[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_box_open_easy (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t pk[32], const uint8_t sk[32]) |
int | crypto_box_open_easy_afternm (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
const char * | crypto_box_primitive () |
size_t | crypto_box_publickeybytes () |
size_t | crypto_box_secretkeybytes () |
int | crypto_box_seed_keypair (uint8_t pk[32], uint8_t sk[32], const uint8_t seed[]) |
size_t | crypto_box_seedbytes () |
size_t | crypto_box_zerobytes () |
int | crypto_core_hsalsa20 (uint8_t out[], const uint8_t in[], const uint8_t key[], const uint8_t c[]) |
size_t | crypto_core_hsalsa20_constbytes () |
size_t | crypto_core_hsalsa20_inputbytes () |
size_t | crypto_core_hsalsa20_keybytes () |
size_t | crypto_core_hsalsa20_outputbytes () |
int | crypto_hash (uint8_t out[], const uint8_t in[], size_t in_len) |
size_t | crypto_hash_bytes () |
const char * | crypto_hash_primitive () |
int | crypto_hash_sha256 (uint8_t out[], const uint8_t in[], size_t in_len) |
size_t | crypto_hash_sha256_bytes () |
int | crypto_hash_sha512 (uint8_t out[64], const uint8_t in[], size_t in_len) |
size_t | crypto_hash_sha512_bytes () |
int | crypto_onetimeauth (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
size_t | crypto_onetimeauth_bytes () |
size_t | crypto_onetimeauth_keybytes () |
void | crypto_onetimeauth_keygen (uint8_t k[32]) |
int | crypto_onetimeauth_poly1305 (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
size_t | crypto_onetimeauth_poly1305_bytes () |
size_t | crypto_onetimeauth_poly1305_keybytes () |
void | crypto_onetimeauth_poly1305_keygen (uint8_t k[32]) |
int | crypto_onetimeauth_poly1305_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
const char * | crypto_onetimeauth_primitive () |
int | crypto_onetimeauth_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[]) |
int | crypto_scalarmult (uint8_t out[], const uint8_t scalar[], const uint8_t base[]) |
int | crypto_scalarmult_base (uint8_t out[], const uint8_t scalar[]) |
size_t | crypto_scalarmult_bytes () |
int | crypto_scalarmult_curve25519 (uint8_t out[32], const uint8_t scalar[32], const uint8_t basepoint[32]) |
int | crypto_scalarmult_curve25519_base (uint8_t out[32], const uint8_t scalar[32]) |
size_t | crypto_scalarmult_curve25519_bytes () |
size_t | crypto_scalarmult_curve25519_scalarbytes () |
const char * | crypto_scalarmult_primitive () |
size_t | crypto_scalarmult_scalarbytes () |
int | crypto_secretbox (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_secretbox_boxzerobytes () |
int | crypto_secretbox_detached (uint8_t ctext[], uint8_t mac[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_secretbox_easy (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_secretbox_keybytes () |
void | crypto_secretbox_keygen (uint8_t k[32]) |
size_t | crypto_secretbox_macbytes () |
size_t | crypto_secretbox_messagebytes_max () |
size_t | crypto_secretbox_noncebytes () |
int | crypto_secretbox_open (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_secretbox_open_detached (uint8_t ptext[], const uint8_t ctext[], const uint8_t mac[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_secretbox_open_easy (uint8_t out[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
const char * | crypto_secretbox_primitive () |
int | crypto_secretbox_xsalsa20poly1305 (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_secretbox_xsalsa20poly1305_boxzerobytes () |
size_t | crypto_secretbox_xsalsa20poly1305_keybytes () |
void | crypto_secretbox_xsalsa20poly1305_keygen (uint8_t k[32]) |
size_t | crypto_secretbox_xsalsa20poly1305_macbytes () |
size_t | crypto_secretbox_xsalsa20poly1305_messagebytes_max () |
size_t | crypto_secretbox_xsalsa20poly1305_noncebytes () |
int | crypto_secretbox_xsalsa20poly1305_open (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_secretbox_xsalsa20poly1305_zerobytes () |
size_t | crypto_secretbox_zerobytes () |
int | crypto_shorthash (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t k[16]) |
size_t | crypto_shorthash_bytes () |
size_t | crypto_shorthash_keybytes () |
void | crypto_shorthash_keygen (uint8_t k[16]) |
const char * | crypto_shorthash_primitive () |
int | crypto_shorthash_siphash24 (uint8_t out[8], const uint8_t in[], size_t in_len, const uint8_t key[16]) |
size_t | crypto_shorthash_siphash24_bytes () |
size_t | crypto_shorthash_siphash24_keybytes () |
size_t | crypto_sign_bytes () |
int | crypto_sign_detached (uint8_t sig[], unsigned long long *sig_len, const uint8_t msg[], size_t msg_len, const uint8_t sk[32]) |
size_t | crypto_sign_ed25519_bytes () |
int | crypto_sign_ed25519_detached (uint8_t sig[], unsigned long long *sig_len, const uint8_t msg[], size_t msg_len, const uint8_t sk[32]) |
int | crypto_sign_ed25519_keypair (uint8_t pk[32], uint8_t sk[64]) |
size_t | crypto_sign_ed25519_messagebytes_max () |
size_t | crypto_sign_ed25519_publickeybytes () |
size_t | crypto_sign_ed25519_secretkeybytes () |
int | crypto_sign_ed25519_seed_keypair (uint8_t pk[], uint8_t sk[], const uint8_t seed[]) |
size_t | crypto_sign_ed25519_seedbytes () |
int | crypto_sign_ed25519_verify_detached (const uint8_t sig[], const uint8_t msg[], size_t msg_len, const uint8_t pk[32]) |
int | crypto_sign_keypair (uint8_t pk[32], uint8_t sk[32]) |
size_t | crypto_sign_messagebytes_max () |
const char * | crypto_sign_primitive () |
size_t | crypto_sign_publickeybytes () |
size_t | crypto_sign_secretkeybytes () |
int | crypto_sign_seed_keypair (uint8_t pk[32], uint8_t sk[32], const uint8_t seed[]) |
size_t | crypto_sign_seedbytes () |
int | crypto_sign_verify_detached (const uint8_t sig[], const uint8_t in[], size_t in_len, const uint8_t pk[32]) |
int | crypto_stream (uint8_t out[], size_t out_len, const uint8_t nonce[24], const uint8_t key[32]) |
int | crypto_stream_chacha20 (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_stream_chacha20_ietf (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_stream_chacha20_ietf_keybytes () |
void | crypto_stream_chacha20_ietf_keygen (uint8_t k[32]) |
size_t | crypto_stream_chacha20_ietf_messagebytes_max () |
size_t | crypto_stream_chacha20_ietf_noncebytes () |
int | crypto_stream_chacha20_ietf_xor (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_stream_chacha20_ietf_xor_ic (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], uint32_t ic, const uint8_t key[]) |
size_t | crypto_stream_chacha20_keybytes () |
void | crypto_stream_chacha20_keygen (uint8_t k[32]) |
size_t | crypto_stream_chacha20_messagebytes_max () |
size_t | crypto_stream_chacha20_noncebytes () |
int | crypto_stream_chacha20_xor (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_stream_chacha20_xor_ic (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], uint64_t ic, const uint8_t key[]) |
size_t | crypto_stream_keybytes () |
void | crypto_stream_keygen (uint8_t key[32]) |
size_t | crypto_stream_messagebytes_max () |
size_t | crypto_stream_noncebytes () |
const char * | crypto_stream_primitive () |
int | crypto_stream_salsa20 (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_stream_salsa20_keybytes () |
void | crypto_stream_salsa20_keygen (uint8_t k[32]) |
size_t | crypto_stream_salsa20_messagebytes_max () |
size_t | crypto_stream_salsa20_noncebytes () |
int | crypto_stream_salsa20_xor (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_stream_salsa20_xor_ic (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], uint64_t ic, const uint8_t key[]) |
int | crypto_stream_xchacha20 (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_stream_xchacha20_keybytes () |
void | crypto_stream_xchacha20_keygen (uint8_t k[32]) |
size_t | crypto_stream_xchacha20_messagebytes_max () |
size_t | crypto_stream_xchacha20_noncebytes () |
int | crypto_stream_xchacha20_xor (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_stream_xchacha20_xor_ic (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], uint64_t ic, const uint8_t key[]) |
int | crypto_stream_xor (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t nonce[24], const uint8_t key[32]) |
int | crypto_stream_xsalsa20 (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[]) |
size_t | crypto_stream_xsalsa20_keybytes () |
void | crypto_stream_xsalsa20_keygen (uint8_t k[32]) |
size_t | crypto_stream_xsalsa20_messagebytes_max () |
size_t | crypto_stream_xsalsa20_noncebytes () |
int | crypto_stream_xsalsa20_xor (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[]) |
int | crypto_stream_xsalsa20_xor_ic (uint8_t out[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], uint64_t ic, const uint8_t key[]) |
int | crypto_verify_16 (const uint8_t x[16], const uint8_t y[16]) |
int | crypto_verify_32 (const uint8_t x[32], const uint8_t y[32]) |
int | crypto_verify_64 (const uint8_t x[64], const uint8_t y[64]) |
void | randombytes (uint8_t buf[], size_t buf_len) |
void | randombytes_buf (void *buf, size_t size) |
void | randombytes_buf_deterministic (void *buf, size_t size, const uint8_t seed[randombytes_SEEDBYTES]) |
int | randombytes_close () |
const char * | randombytes_implementation_name () |
uint32_t | randombytes_random () |
size_t | randombytes_seedbytes () |
void | randombytes_stir () |
uint32_t | randombytes_uniform (uint32_t upper_bound) |
void | sodium_add (uint8_t a[], const uint8_t b[], size_t len) |
void * | sodium_allocarray (size_t count, size_t size) |
int | sodium_compare (const uint8_t x[], const uint8_t y[], size_t len) |
void | sodium_free (void *ptr) |
void | sodium_increment (uint8_t n[], size_t nlen) |
int | sodium_init () |
int | sodium_is_zero (const uint8_t nonce[], size_t nlen) |
int | sodium_library_minimal () |
int | sodium_library_version_major () |
int | sodium_library_version_minor () |
void * | sodium_malloc (size_t size) |
int | sodium_memcmp (const void *x, const void *y, size_t len) |
void | sodium_memzero (void *ptr, size_t len) |
int | sodium_mprotect_noaccess (void *ptr) |
int | sodium_mprotect_readwrite (void *ptr) |
const char * | sodium_version_string () |
The Sodium namespace contains a partial implementation of the libsodium API.
enum Botan::Sodium::Sodium_Constants : size_t |
Definition at line 21 of file sodium.h.
|
inline |
Definition at line 462 of file sodium.h.
References crypto_aead_chacha20poly1305_ABYTES.
int Botan::Sodium::crypto_aead_chacha20poly1305_decrypt | ( | uint8_t | m[], |
unsigned long long * | ptext_len, | ||
uint8_t | unused_secret_nonce[], | ||
const uint8_t | ctext[], | ||
size_t | ctext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 236 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_npubbytes().
int Botan::Sodium::crypto_aead_chacha20poly1305_decrypt_detached | ( | uint8_t | m[], |
uint8_t | unused_secret_nonce[], | ||
const uint8_t | ctext[], | ||
size_t | ctext_len, | ||
const uint8_t | mac[], | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 272 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_npubbytes().
int Botan::Sodium::crypto_aead_chacha20poly1305_encrypt | ( | uint8_t | ctext[], |
unsigned long long * | ctext_len, | ||
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | unused_secret_nonce[], | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 220 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_npubbytes().
int Botan::Sodium::crypto_aead_chacha20poly1305_encrypt_detached | ( | uint8_t | ctext[], |
uint8_t | mac[], | ||
unsigned long long * | mac_len, | ||
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | unused_secret_nonce[], | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 252 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_npubbytes().
|
inline |
Definition at line 387 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_ABYTES.
int Botan::Sodium::crypto_aead_chacha20poly1305_ietf_decrypt | ( | uint8_t | ptext[], |
unsigned long long * | ptext_len, | ||
uint8_t | unused_secret_nonce[], | ||
const uint8_t | ctext[], | ||
size_t | ctext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 165 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_ietf_npubbytes().
int Botan::Sodium::crypto_aead_chacha20poly1305_ietf_decrypt_detached | ( | uint8_t | m[], |
uint8_t | unused_secret_nonce[], | ||
const uint8_t | ctext[], | ||
size_t | ctext_len, | ||
const uint8_t | mac[], | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 203 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_ietf_npubbytes().
int Botan::Sodium::crypto_aead_chacha20poly1305_ietf_encrypt | ( | uint8_t | ctext[], |
unsigned long long * | ctext_len, | ||
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | unused_secret_nonce[], | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 148 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_ietf_npubbytes().
int Botan::Sodium::crypto_aead_chacha20poly1305_ietf_encrypt_detached | ( | uint8_t | ctext[], |
uint8_t | mac[], | ||
unsigned long long * | mac_len, | ||
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | unused_secret_nonce[], | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 182 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_ietf_npubbytes().
|
inline |
Definition at line 372 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_KEYBYTES.
|
inline |
Definition at line 442 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_KEYBYTES, and randombytes_buf().
|
inline |
Definition at line 392 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX.
|
inline |
Definition at line 382 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_NPUBBYTES.
Referenced by crypto_aead_chacha20poly1305_ietf_decrypt(), crypto_aead_chacha20poly1305_ietf_decrypt_detached(), crypto_aead_chacha20poly1305_ietf_encrypt(), and crypto_aead_chacha20poly1305_ietf_encrypt_detached().
|
inline |
Definition at line 377 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_NSECBYTES.
|
inline |
Definition at line 447 of file sodium.h.
References crypto_aead_chacha20poly1305_KEYBYTES.
|
inline |
Definition at line 517 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 467 of file sodium.h.
References crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX.
|
inline |
Definition at line 457 of file sodium.h.
References crypto_aead_chacha20poly1305_NPUBBYTES.
Referenced by crypto_aead_chacha20poly1305_decrypt(), crypto_aead_chacha20poly1305_decrypt_detached(), crypto_aead_chacha20poly1305_encrypt(), and crypto_aead_chacha20poly1305_encrypt_detached().
|
inline |
Definition at line 452 of file sodium.h.
References crypto_aead_chacha20poly1305_NSECBYTES.
|
inline |
Definition at line 539 of file sodium.h.
References crypto_aead_xchacha20poly1305_ietf_ABYTES.
int Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_decrypt | ( | uint8_t | ptext[], |
unsigned long long * | ptext_len, | ||
uint8_t | unused_secret_nonce[], | ||
const uint8_t | ctext[], | ||
size_t | ctext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 306 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_xchacha20poly1305_ietf_npubbytes().
int Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_decrypt_detached | ( | uint8_t | ptext[], |
uint8_t | unused_secret_nonce[], | ||
const uint8_t | ctext[], | ||
size_t | ctext_len, | ||
const uint8_t | mac[], | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 343 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_xchacha20poly1305_ietf_npubbytes().
int Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_encrypt | ( | uint8_t | ctext[], |
unsigned long long * | ctext_len, | ||
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | unused_secret_nonce[], | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 289 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_xchacha20poly1305_ietf_npubbytes().
int Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_encrypt_detached | ( | uint8_t | ctext[], |
uint8_t | mac[], | ||
unsigned long long * | mac_len, | ||
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | ad[], | ||
size_t | ad_len, | ||
const uint8_t | unused_secret_nonce[], | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 323 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_xchacha20poly1305_ietf_npubbytes().
|
inline |
Definition at line 524 of file sodium.h.
References crypto_aead_xchacha20poly1305_ietf_KEYBYTES.
|
inline |
Definition at line 594 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 544 of file sodium.h.
References crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX.
|
inline |
Definition at line 534 of file sodium.h.
References crypto_aead_xchacha20poly1305_ietf_NPUBBYTES.
Referenced by crypto_aead_xchacha20poly1305_ietf_decrypt(), crypto_aead_xchacha20poly1305_ietf_decrypt_detached(), crypto_aead_xchacha20poly1305_ietf_encrypt(), and crypto_aead_xchacha20poly1305_ietf_encrypt_detached().
|
inline |
Definition at line 529 of file sodium.h.
References crypto_aead_xchacha20poly1305_ietf_NSECBYTES.
|
inline |
Definition at line 920 of file sodium.h.
References crypto_auth_hmacsha512256().
|
inline |
int Botan::Sodium::crypto_auth_hmacsha256 | ( | uint8_t | out[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] | ||
) |
Definition at line 109 of file sodium_auth.cpp.
References Botan::MessageAuthenticationCode::create_or_throw(), and crypto_auth_hmacsha256_KEYBYTES.
Referenced by crypto_auth_hmacsha256_verify().
|
inline |
Definition at line 949 of file sodium.h.
References crypto_auth_hmacsha256_BYTES.
|
inline |
Definition at line 954 of file sodium.h.
References crypto_auth_hmacsha256_KEYBYTES.
|
inline |
Definition at line 971 of file sodium.h.
References randombytes_buf().
int Botan::Sodium::crypto_auth_hmacsha256_verify | ( | const uint8_t | h[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] | ||
) |
Definition at line 121 of file sodium_auth.cpp.
References crypto_auth_hmacsha256(), crypto_auth_hmacsha256_BYTES, and crypto_verify_32().
int Botan::Sodium::crypto_auth_hmacsha512 | ( | uint8_t | out[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] | ||
) |
Definition at line 61 of file sodium_auth.cpp.
References Botan::MessageAuthenticationCode::create_or_throw(), and crypto_auth_hmacsha512_KEYBYTES.
Referenced by crypto_auth_hmacsha512_verify().
int Botan::Sodium::crypto_auth_hmacsha512256 | ( | uint8_t | out[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] | ||
) |
Definition at line 83 of file sodium_auth.cpp.
References Botan::copy_mem(), Botan::MessageAuthenticationCode::create_or_throw(), crypto_auth_hmacsha512256_BYTES, and crypto_auth_hmacsha512256_KEYBYTES.
Referenced by crypto_auth(), and crypto_auth_hmacsha512256_verify().
|
inline |
Definition at line 885 of file sodium.h.
References crypto_auth_hmacsha512256_BYTES.
|
inline |
Definition at line 890 of file sodium.h.
References crypto_auth_hmacsha512256_KEYBYTES.
|
inline |
Definition at line 907 of file sodium.h.
References randombytes_buf().
int Botan::Sodium::crypto_auth_hmacsha512256_verify | ( | const uint8_t | h[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] | ||
) |
Definition at line 99 of file sodium_auth.cpp.
References crypto_auth_hmacsha512256(), crypto_auth_hmacsha512256_BYTES, and crypto_verify_32().
Referenced by crypto_auth_verify().
|
inline |
|
inline |
|
inline |
Definition at line 878 of file sodium.h.
References randombytes_buf().
int Botan::Sodium::crypto_auth_hmacsha512_verify | ( | const uint8_t | h[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] | ||
) |
Definition at line 73 of file sodium_auth.cpp.
References crypto_auth_hmacsha512(), crypto_auth_hmacsha512_BYTES, and crypto_verify_64().
|
inline |
|
inline |
Definition at line 932 of file sodium.h.
References crypto_auth_KEYBYTES, and randombytes_buf().
|
inline |
|
inline |
Definition at line 926 of file sodium.h.
References crypto_auth_hmacsha512256_verify().
|
inline |
Definition at line 839 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305().
|
inline |
Definition at line 785 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_afternm().
|
inline |
Definition at line 779 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_beforenm().
Referenced by crypto_box_detached(), and crypto_box_open_detached().
|
inline |
Definition at line 726 of file sodium.h.
References crypto_box_BEFORENMBYTES.
|
inline |
int Botan::Sodium::crypto_box_curve25519xsalsa20poly1305 | ( | uint8_t | ctext[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | pk[32], | ||
const uint8_t | sk[32] | ||
) |
Definition at line 42 of file sodium_box.cpp.
References crypto_box_curve25519xsalsa20poly1305_afternm(), and crypto_box_curve25519xsalsa20poly1305_beforenm().
Referenced by crypto_box().
|
inline |
Definition at line 676 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305().
Referenced by crypto_box_afternm(), and crypto_box_curve25519xsalsa20poly1305().
int Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_beforenm | ( | uint8_t | key[], |
const uint8_t | pk[32], | ||
const uint8_t | sk[32] | ||
) |
Definition at line 29 of file sodium_box.cpp.
References crypto_core_hsalsa20(), and crypto_scalarmult_curve25519().
Referenced by crypto_box_beforenm(), crypto_box_curve25519xsalsa20poly1305(), and crypto_box_curve25519xsalsa20poly1305_open().
|
inline |
Definition at line 616 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES.
|
inline |
Definition at line 636 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES.
int Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_keypair | ( | uint8_t | pk[32], |
uint8_t | sk[32] | ||
) |
Definition at line 22 of file sodium_box.cpp.
References crypto_scalarmult_curve25519_base(), and randombytes_buf().
Referenced by crypto_box_keypair().
|
inline |
Definition at line 626 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_MACBYTES.
|
inline |
Definition at line 631 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX.
|
inline |
Definition at line 621 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_NONCEBYTES.
int Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_open | ( | uint8_t | ptext[], |
const uint8_t | ctext[], | ||
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | pk[32], | ||
const uint8_t | sk[32] | ||
) |
Definition at line 57 of file sodium_box.cpp.
References crypto_box_curve25519xsalsa20poly1305_beforenm(), and crypto_box_curve25519xsalsa20poly1305_open_afternm().
Referenced by crypto_box_open().
|
inline |
Definition at line 685 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_open().
Referenced by crypto_box_curve25519xsalsa20poly1305_open(), and crypto_box_open_afternm().
|
inline |
Definition at line 606 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES.
|
inline |
Definition at line 611 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES.
int Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_seed_keypair | ( | uint8_t | pk[32], |
uint8_t | sk[32], | ||
const uint8_t | seed[32] | ||
) |
Definition at line 12 of file sodium_box.cpp.
References Botan::copy_mem(), crypto_hash_sha512(), and crypto_scalarmult_curve25519_base().
Referenced by crypto_box_seed_keypair().
|
inline |
Definition at line 601 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_SEEDBYTES.
|
inline |
Definition at line 641 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_ZEROBYTES.
int Botan::Sodium::crypto_box_detached | ( | uint8_t | ctext[], |
uint8_t | mac[], | ||
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | pk[32], | ||
const uint8_t | sk[32] | ||
) |
Definition at line 72 of file sodium_box.cpp.
References crypto_box_beforenm(), and crypto_box_detached_afternm().
Referenced by crypto_box_easy().
|
inline |
Definition at line 821 of file sodium.h.
References crypto_secretbox_detached().
Referenced by crypto_box_detached(), and crypto_box_easy_afternm().
|
inline |
Definition at line 758 of file sodium.h.
References crypto_box_detached(), and crypto_box_MACBYTES.
|
inline |
Definition at line 828 of file sodium.h.
References crypto_box_detached_afternm(), and crypto_box_MACBYTES.
|
inline |
Definition at line 739 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_keypair().
|
inline |
Definition at line 716 of file sodium.h.
References crypto_box_MACBYTES.
|
inline |
Definition at line 721 of file sodium.h.
References crypto_box_MESSAGEBYTES_MAX.
|
inline |
Definition at line 711 of file sodium.h.
References crypto_box_NONCEBYTES.
|
inline |
Definition at line 846 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_open().
|
inline |
Definition at line 792 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_open_afternm().
int Botan::Sodium::crypto_box_open_detached | ( | uint8_t | ptext[], |
const uint8_t | ctext[], | ||
const uint8_t | mac[], | ||
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | pk[32], | ||
const uint8_t | sk[32] | ||
) |
Definition at line 85 of file sodium_box.cpp.
References crypto_box_beforenm(), and crypto_box_open_detached_afternm().
Referenced by crypto_box_open_easy().
|
inline |
Definition at line 799 of file sodium.h.
References crypto_secretbox_open_detached().
Referenced by crypto_box_open_detached(), and crypto_box_open_easy_afternm().
|
inline |
Definition at line 765 of file sodium.h.
References crypto_box_MACBYTES, and crypto_box_open_detached().
|
inline |
Definition at line 807 of file sodium.h.
References crypto_box_MACBYTES, and crypto_box_open_detached_afternm().
|
inline |
|
inline |
Definition at line 701 of file sodium.h.
References crypto_box_PUBLICKEYBYTES.
|
inline |
Definition at line 706 of file sodium.h.
References crypto_box_SECRETKEYBYTES.
|
inline |
Definition at line 733 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_seed_keypair().
|
inline |
Definition at line 696 of file sodium.h.
References crypto_box_SEEDBYTES.
|
inline |
int Botan::Sodium::crypto_core_hsalsa20 | ( | uint8_t | out[], |
const uint8_t | in[], | ||
const uint8_t | key[], | ||
const uint8_t | c[] | ||
) |
Definition at line 13 of file sodium_salsa.cpp.
References Botan::copy_out_le(), Botan::Salsa20::hsalsa20(), and Botan::load_le< uint32_t >().
Referenced by crypto_box_curve25519xsalsa20poly1305_beforenm().
|
inline |
Definition at line 1030 of file sodium.h.
References crypto_core_hsalsa20_CONSTBYTES.
|
inline |
Definition at line 1020 of file sodium.h.
References crypto_core_hsalsa20_INPUTBYTES.
|
inline |
Definition at line 1025 of file sodium.h.
References crypto_core_hsalsa20_KEYBYTES.
|
inline |
Definition at line 1015 of file sodium.h.
References crypto_core_hsalsa20_OUTPUTBYTES.
|
inline |
Definition at line 1046 of file sodium.h.
References crypto_hash_sha512().
|
inline |
Definition at line 1041 of file sodium.h.
References crypto_hash_BYTES.
|
inline |
int Botan::Sodium::crypto_hash_sha256 | ( | uint8_t | out[], |
const uint8_t | in[], | ||
size_t | in_len | ||
) |
Definition at line 21 of file sodium_auth.cpp.
References Botan::HashFunction::create_or_throw().
|
inline |
Definition at line 939 of file sodium.h.
References crypto_hash_sha256_BYTES.
int Botan::Sodium::crypto_hash_sha512 | ( | uint8_t | out[64], |
const uint8_t | in[], | ||
size_t | in_len | ||
) |
Definition at line 13 of file sodium_auth.cpp.
References Botan::HashFunction::create_or_throw().
Referenced by crypto_box_curve25519xsalsa20poly1305_seed_keypair(), and crypto_hash().
|
inline |
|
inline |
Definition at line 1090 of file sodium.h.
References crypto_onetimeauth_poly1305().
|
inline |
|
inline |
|
inline |
Definition at line 1102 of file sodium.h.
References crypto_onetimeauth_poly1305_keygen().
int Botan::Sodium::crypto_onetimeauth_poly1305 | ( | uint8_t | out[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] | ||
) |
Definition at line 39 of file sodium_auth.cpp.
References Botan::MessageAuthenticationCode::create_or_throw(), and crypto_onetimeauth_poly1305_KEYBYTES.
Referenced by crypto_onetimeauth(), and crypto_onetimeauth_poly1305_verify().
|
inline |
Definition at line 1055 of file sodium.h.
References crypto_onetimeauth_poly1305_BYTES.
|
inline |
Definition at line 1060 of file sodium.h.
References crypto_onetimeauth_poly1305_KEYBYTES.
|
inline |
Definition at line 1077 of file sodium.h.
References randombytes_buf().
Referenced by crypto_onetimeauth_keygen().
int Botan::Sodium::crypto_onetimeauth_poly1305_verify | ( | const uint8_t | h[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] | ||
) |
Definition at line 51 of file sodium_auth.cpp.
References crypto_onetimeauth_poly1305(), crypto_onetimeauth_poly1305_BYTES, and crypto_verify_16().
Referenced by crypto_onetimeauth_verify().
|
inline |
|
inline |
Definition at line 1096 of file sodium.h.
References crypto_onetimeauth_poly1305_verify().
|
inline |
Definition at line 1138 of file sodium.h.
References crypto_scalarmult_curve25519().
|
inline |
Definition at line 1133 of file sodium.h.
References crypto_scalarmult_curve25519_base().
|
inline |
Definition at line 1127 of file sodium.h.
References crypto_scalarmult_curve25519_bytes().
int Botan::Sodium::crypto_scalarmult_curve25519 | ( | uint8_t | out[32], |
const uint8_t | scalar[32], | ||
const uint8_t | basepoint[32] | ||
) |
Definition at line 13 of file sodium_25519.cpp.
References Botan::curve25519_donna().
Referenced by crypto_box_curve25519xsalsa20poly1305_beforenm(), and crypto_scalarmult().
int Botan::Sodium::crypto_scalarmult_curve25519_base | ( | uint8_t | out[32], |
const uint8_t | scalar[32] | ||
) |
Definition at line 19 of file sodium_25519.cpp.
References Botan::curve25519_basepoint().
Referenced by crypto_box_curve25519xsalsa20poly1305_keypair(), crypto_box_curve25519xsalsa20poly1305_seed_keypair(), and crypto_scalarmult_base().
|
inline |
Definition at line 1109 of file sodium.h.
References crypto_scalarmult_curve25519_BYTES.
Referenced by crypto_scalarmult_bytes().
|
inline |
Definition at line 1114 of file sodium.h.
References crypto_scalarmult_curve25519_SCALARBYTES.
Referenced by crypto_scalarmult_scalarbytes().
|
inline |
|
inline |
Definition at line 1129 of file sodium.h.
References crypto_scalarmult_curve25519_scalarbytes().
|
inline |
Definition at line 356 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305().
|
inline |
Definition at line 351 of file sodium.h.
References crypto_secretbox_BOXZEROBYTES.
int Botan::Sodium::crypto_secretbox_detached | ( | uint8_t | ctext[], |
uint8_t | mac[], | ||
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 73 of file sodium_secretbox.cpp.
References Botan::MessageAuthenticationCode::create_or_throw(), Botan::StreamCipher::create_or_throw(), crypto_secretbox_KEYBYTES, and crypto_secretbox_NONCEBYTES.
Referenced by crypto_box_detached_afternm(), and crypto_secretbox_easy().
|
inline |
Definition at line 320 of file sodium.h.
References crypto_secretbox_detached(), and crypto_secretbox_MACBYTES.
|
inline |
|
inline |
Definition at line 341 of file sodium.h.
References randombytes_buf().
|
inline |
|
inline |
Definition at line 301 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX.
|
inline |
|
inline |
Definition at line 363 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_open().
int Botan::Sodium::crypto_secretbox_open_detached | ( | uint8_t | ptext[], |
const uint8_t | ctext[], | ||
const uint8_t | mac[], | ||
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 96 of file sodium_secretbox.cpp.
References Botan::constant_time_compare(), Botan::MessageAuthenticationCode::create_or_throw(), Botan::StreamCipher::create_or_throw(), crypto_secretbox_KEYBYTES, and crypto_secretbox_NONCEBYTES.
Referenced by crypto_box_open_detached_afternm(), and crypto_secretbox_open_easy().
|
inline |
Definition at line 328 of file sodium.h.
References crypto_secretbox_MACBYTES, and crypto_secretbox_open_detached().
|
inline |
int Botan::Sodium::crypto_secretbox_xsalsa20poly1305 | ( | uint8_t | ctext[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 14 of file sodium_secretbox.cpp.
References Botan::clear_mem(), Botan::MessageAuthenticationCode::create_or_throw(), Botan::StreamCipher::create_or_throw(), crypto_secretbox_KEYBYTES, and crypto_secretbox_NONCEBYTES.
Referenced by crypto_box_curve25519xsalsa20poly1305_afternm(), and crypto_secretbox().
|
inline |
Definition at line 283 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES.
|
inline |
Definition at line 244 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_KEYBYTES.
|
inline |
Definition at line 278 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 254 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_MACBYTES.
|
inline |
Definition at line 259 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX.
|
inline |
Definition at line 249 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_NONCEBYTES.
int Botan::Sodium::crypto_secretbox_xsalsa20poly1305_open | ( | uint8_t | ptext[], |
const uint8_t | ctext[], | ||
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 41 of file sodium_secretbox.cpp.
References Botan::clear_mem(), Botan::constant_time_compare(), Botan::MessageAuthenticationCode::create_or_throw(), Botan::StreamCipher::create_or_throw(), crypto_box_curve25519xsalsa20poly1305_ZEROBYTES, crypto_secretbox_KEYBYTES, and crypto_secretbox_NONCEBYTES.
Referenced by crypto_box_curve25519xsalsa20poly1305_open_afternm(), and crypto_secretbox_open().
|
inline |
Definition at line 288 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_ZEROBYTES.
|
inline |
Definition at line 346 of file sodium.h.
References crypto_secretbox_ZEROBYTES.
|
inline |
Definition at line 1333 of file sodium.h.
References crypto_shorthash_siphash24().
|
inline |
Definition at line 1327 of file sodium.h.
References crypto_shorthash_siphash24_bytes().
|
inline |
Definition at line 1329 of file sodium.h.
References crypto_shorthash_siphash24_keybytes().
|
inline |
Definition at line 1339 of file sodium.h.
References crypto_shorthash_siphash24_KEYBYTES, and randombytes_buf().
|
inline |
int Botan::Sodium::crypto_shorthash_siphash24 | ( | uint8_t | out[8], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[16] | ||
) |
Definition at line 29 of file sodium_auth.cpp.
References Botan::MessageAuthenticationCode::create_or_throw(), and crypto_shorthash_siphash24_KEYBYTES.
Referenced by crypto_shorthash().
|
inline |
Definition at line 1318 of file sodium.h.
References crypto_shorthash_siphash24_BYTES.
Referenced by crypto_shorthash_bytes().
|
inline |
Definition at line 1320 of file sodium.h.
References crypto_shorthash_siphash24_KEYBYTES.
Referenced by crypto_shorthash_keybytes().
|
inline |
Definition at line 1393 of file sodium.h.
References crypto_sign_BYTES.
|
inline |
Definition at line 1434 of file sodium.h.
References crypto_sign_ed25519_detached().
|
inline |
Definition at line 1346 of file sodium.h.
References crypto_sign_ed25519_BYTES.
int Botan::Sodium::crypto_sign_ed25519_detached | ( | uint8_t | sig[], |
unsigned long long * | sig_len, | ||
const uint8_t | msg[], | ||
size_t | msg_len, | ||
const uint8_t | sk[32] | ||
) |
Definition at line 24 of file sodium_25519.cpp.
References Botan::ed25519_sign().
Referenced by crypto_sign_detached().
int Botan::Sodium::crypto_sign_ed25519_keypair | ( | uint8_t | pk[32], |
uint8_t | sk[64] | ||
) |
Definition at line 46 of file sodium_25519.cpp.
References crypto_sign_ed25519_seed_keypair(), and randombytes_buf().
Referenced by crypto_sign_keypair().
|
inline |
Definition at line 1366 of file sodium.h.
References crypto_sign_ed25519_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1356 of file sodium.h.
References crypto_sign_ed25519_PUBLICKEYBYTES.
|
inline |
Definition at line 1361 of file sodium.h.
References crypto_sign_ed25519_SECRETKEYBYTES.
int Botan::Sodium::crypto_sign_ed25519_seed_keypair | ( | uint8_t | pk[], |
uint8_t | sk[], | ||
const uint8_t | seed[] | ||
) |
Definition at line 53 of file sodium_25519.cpp.
References Botan::ed25519_gen_keypair().
Referenced by crypto_sign_ed25519_keypair(), and crypto_sign_seed_keypair().
|
inline |
Definition at line 1351 of file sodium.h.
References crypto_sign_ed25519_SEEDBYTES.
int Botan::Sodium::crypto_sign_ed25519_verify_detached | ( | const uint8_t | sig[], |
const uint8_t | msg[], | ||
size_t | msg_len, | ||
const uint8_t | pk[32] | ||
) |
Definition at line 37 of file sodium_25519.cpp.
References Botan::ed25519_verify().
Referenced by crypto_sign_verify_detached().
|
inline |
Definition at line 1429 of file sodium.h.
References crypto_sign_ed25519_keypair().
|
inline |
Definition at line 1413 of file sodium.h.
References crypto_sign_MESSAGEBYTES_MAX.
|
inline |
|
inline |
Definition at line 1403 of file sodium.h.
References crypto_sign_PUBLICKEYBYTES.
|
inline |
Definition at line 1408 of file sodium.h.
References crypto_sign_SECRETKEYBYTES.
|
inline |
Definition at line 1423 of file sodium.h.
References crypto_sign_ed25519_seed_keypair().
|
inline |
Definition at line 1398 of file sodium.h.
References crypto_sign_SEEDBYTES.
|
inline |
Definition at line 1441 of file sodium.h.
References crypto_sign_ed25519_verify_detached().
|
inline |
Definition at line 1299 of file sodium.h.
References crypto_stream_xsalsa20().
int Botan::Sodium::crypto_stream_chacha20 | ( | uint8_t | out[], |
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 12 of file sodium_chacha.cpp.
References Botan::StreamCipher::create_or_throw(), crypto_stream_chacha20_KEYBYTES, and crypto_stream_chacha20_NONCEBYTES.
int Botan::Sodium::crypto_stream_chacha20_ietf | ( | uint8_t | out[], |
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 45 of file sodium_chacha.cpp.
References Botan::StreamCipher::create_or_throw(), crypto_stream_chacha20_ietf_KEYBYTES, and crypto_stream_chacha20_ietf_NONCEBYTES.
|
inline |
Definition at line 1180 of file sodium.h.
References crypto_stream_chacha20_ietf_KEYBYTES.
|
inline |
Definition at line 1210 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 1190 of file sodium.h.
References crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1185 of file sodium.h.
References crypto_stream_chacha20_ietf_NONCEBYTES.
int Botan::Sodium::crypto_stream_chacha20_ietf_xor | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 55 of file sodium_chacha.cpp.
References crypto_stream_chacha20_ietf_xor_ic().
int Botan::Sodium::crypto_stream_chacha20_ietf_xor_ic | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
uint32_t | ic, | ||
const uint8_t | key[] | ||
) |
Definition at line 63 of file sodium_chacha.cpp.
References Botan::StreamCipher::create_or_throw(), crypto_stream_chacha20_ietf_KEYBYTES, and crypto_stream_chacha20_ietf_NONCEBYTES.
Referenced by crypto_stream_chacha20_ietf_xor().
|
inline |
Definition at line 1145 of file sodium.h.
References crypto_stream_chacha20_KEYBYTES.
|
inline |
Definition at line 1175 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 1155 of file sodium.h.
References crypto_stream_chacha20_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1150 of file sodium.h.
References crypto_stream_chacha20_NONCEBYTES.
int Botan::Sodium::crypto_stream_chacha20_xor | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 22 of file sodium_chacha.cpp.
References crypto_stream_chacha20_xor_ic().
int Botan::Sodium::crypto_stream_chacha20_xor_ic | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
uint64_t | ic, | ||
const uint8_t | key[] | ||
) |
Definition at line 29 of file sodium_chacha.cpp.
References Botan::StreamCipher::create_or_throw(), crypto_stream_chacha20_KEYBYTES, and crypto_stream_chacha20_NONCEBYTES.
Referenced by crypto_stream_chacha20_xor().
|
inline |
Definition at line 1291 of file sodium.h.
References crypto_stream_xsalsa20_keybytes().
|
inline |
Definition at line 1311 of file sodium.h.
References randombytes_buf().
|
inline |
|
inline |
Definition at line 1293 of file sodium.h.
References crypto_stream_xsalsa20_noncebytes().
|
inline |
int Botan::Sodium::crypto_stream_salsa20 | ( | uint8_t | out[], |
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 58 of file sodium_salsa.cpp.
References crypto_stream_salsa20_KEYBYTES, crypto_stream_salsa20_NONCEBYTES, Botan::Salsa20::set_iv(), Botan::SymmetricAlgorithm::set_key(), and Botan::StreamCipher::write_keystream().
|
inline |
Definition at line 1254 of file sodium.h.
References crypto_stream_xsalsa20_KEYBYTES.
|
inline |
Definition at line 1284 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 1264 of file sodium.h.
References crypto_stream_salsa20_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1259 of file sodium.h.
References crypto_stream_salsa20_NONCEBYTES.
int Botan::Sodium::crypto_stream_salsa20_xor | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 68 of file sodium_salsa.cpp.
References crypto_stream_salsa20_xor_ic().
int Botan::Sodium::crypto_stream_salsa20_xor_ic | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
uint64_t | ic, | ||
const uint8_t | key[] | ||
) |
Definition at line 75 of file sodium_salsa.cpp.
References Botan::Salsa20::cipher(), crypto_stream_salsa20_KEYBYTES, crypto_stream_salsa20_NONCEBYTES, Botan::Salsa20::seek(), Botan::Salsa20::set_iv(), and Botan::SymmetricAlgorithm::set_key().
Referenced by crypto_stream_salsa20_xor().
int Botan::Sodium::crypto_stream_xchacha20 | ( | uint8_t | out[], |
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 76 of file sodium_chacha.cpp.
References Botan::StreamCipher::create_or_throw(), crypto_stream_xchacha20_KEYBYTES, and crypto_stream_xchacha20_NONCEBYTES.
|
inline |
Definition at line 1217 of file sodium.h.
References crypto_stream_xchacha20_KEYBYTES.
|
inline |
Definition at line 1247 of file sodium.h.
References crypto_stream_xchacha20_KEYBYTES, and randombytes_buf().
|
inline |
Definition at line 1227 of file sodium.h.
References crypto_stream_xchacha20_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1222 of file sodium.h.
References crypto_stream_xchacha20_NONCEBYTES.
int Botan::Sodium::crypto_stream_xchacha20_xor | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 86 of file sodium_chacha.cpp.
References crypto_stream_xchacha20_xor_ic().
int Botan::Sodium::crypto_stream_xchacha20_xor_ic | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
uint64_t | ic, | ||
const uint8_t | key[] | ||
) |
Definition at line 93 of file sodium_chacha.cpp.
References Botan::StreamCipher::create_or_throw(), crypto_stream_xchacha20_KEYBYTES, and crypto_stream_xchacha20_NONCEBYTES.
Referenced by crypto_stream_xchacha20_xor().
|
inline |
Definition at line 1305 of file sodium.h.
References crypto_stream_xsalsa20_xor().
int Botan::Sodium::crypto_stream_xsalsa20 | ( | uint8_t | out[], |
size_t | ctext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 91 of file sodium_salsa.cpp.
References crypto_stream_xsalsa20_KEYBYTES, crypto_stream_xsalsa20_NONCEBYTES, Botan::Salsa20::set_iv(), Botan::SymmetricAlgorithm::set_key(), and Botan::StreamCipher::write_keystream().
Referenced by crypto_stream().
|
inline |
Definition at line 978 of file sodium.h.
References crypto_stream_xsalsa20_KEYBYTES.
Referenced by crypto_stream_keybytes().
|
inline |
Definition at line 1008 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 988 of file sodium.h.
References crypto_stream_xsalsa20_MESSAGEBYTES_MAX.
|
inline |
Definition at line 983 of file sodium.h.
References crypto_stream_xsalsa20_NONCEBYTES.
Referenced by crypto_stream_noncebytes().
int Botan::Sodium::crypto_stream_xsalsa20_xor | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
const uint8_t | key[] | ||
) |
Definition at line 101 of file sodium_salsa.cpp.
References crypto_stream_xsalsa20_xor_ic().
Referenced by crypto_stream_xor().
int Botan::Sodium::crypto_stream_xsalsa20_xor_ic | ( | uint8_t | out[], |
const uint8_t | ptext[], | ||
size_t | ptext_len, | ||
const uint8_t | nonce[], | ||
uint64_t | ic, | ||
const uint8_t | key[] | ||
) |
Definition at line 108 of file sodium_salsa.cpp.
References Botan::Salsa20::cipher(), crypto_stream_xsalsa20_KEYBYTES, crypto_stream_xsalsa20_NONCEBYTES, Botan::Salsa20::seek(), Botan::Salsa20::set_iv(), and Botan::SymmetricAlgorithm::set_key().
Referenced by crypto_stream_xsalsa20_xor().
int Botan::Sodium::crypto_verify_16 | ( | const uint8_t | x[16], |
const uint8_t | y[16] | ||
) |
Definition at line 46 of file sodium_utils.cpp.
References Botan::same_mem().
Referenced by crypto_onetimeauth_poly1305_verify().
int Botan::Sodium::crypto_verify_32 | ( | const uint8_t | x[32], |
const uint8_t | y[32] | ||
) |
Definition at line 51 of file sodium_utils.cpp.
References Botan::same_mem().
Referenced by crypto_auth_hmacsha256_verify(), and crypto_auth_hmacsha512256_verify().
int Botan::Sodium::crypto_verify_64 | ( | const uint8_t | x[64], |
const uint8_t | y[64] | ||
) |
Definition at line 56 of file sodium_utils.cpp.
References Botan::same_mem().
Referenced by crypto_auth_hmacsha512_verify().
|
inline |
Definition at line 237 of file sodium.h.
References randombytes_buf().
void Botan::Sodium::randombytes_buf | ( | void * | buf, |
size_t | size | ||
) |
Definition at line 18 of file sodium_utils.cpp.
References Botan::RandomNumberGenerator::randomize(), and Botan::system_rng().
Referenced by crypto_aead_chacha20poly1305_ietf_keygen(), crypto_aead_chacha20poly1305_keygen(), crypto_aead_xchacha20poly1305_ietf_keygen(), crypto_auth_hmacsha256_keygen(), crypto_auth_hmacsha512256_keygen(), crypto_auth_hmacsha512_keygen(), crypto_auth_keygen(), crypto_box_curve25519xsalsa20poly1305_keypair(), crypto_onetimeauth_poly1305_keygen(), crypto_secretbox_keygen(), crypto_secretbox_xsalsa20poly1305_keygen(), crypto_shorthash_keygen(), crypto_sign_ed25519_keypair(), crypto_stream_chacha20_ietf_keygen(), crypto_stream_chacha20_keygen(), crypto_stream_keygen(), crypto_stream_salsa20_keygen(), crypto_stream_xchacha20_keygen(), crypto_stream_xsalsa20_keygen(), randombytes(), randombytes_random(), and randombytes_uniform().
void Botan::Sodium::randombytes_buf_deterministic | ( | void * | buf, |
size_t | size, | ||
const uint8_t | seed[randombytes_SEEDBYTES] | ||
) |
Definition at line 34 of file sodium_utils.cpp.
References randombytes_SEEDBYTES, Botan::ChaCha::set_iv(), Botan::SymmetricAlgorithm::set_key(), and Botan::ChaCha::write_keystream().
|
inline |
|
inline |
|
inline |
Definition at line 221 of file sodium.h.
References randombytes_buf().
|
inline |
uint32_t Botan::Sodium::randombytes_uniform | ( | uint32_t | upper_bound | ) |
Definition at line 23 of file sodium_utils.cpp.
References randombytes_buf().
void Botan::Sodium::sodium_add | ( | uint8_t | a[], |
const uint8_t | b[], | ||
size_t | len | ||
) |
Definition at line 108 of file sodium_utils.cpp.
References b, and Botan::carry().
void * Botan::Sodium::sodium_allocarray | ( | size_t | count, |
size_t | size | ||
) |
Definition at line 141 of file sodium_utils.cpp.
References sodium_malloc().
int Botan::Sodium::sodium_compare | ( | const uint8_t | x[], |
const uint8_t | y[], | ||
size_t | len | ||
) |
Definition at line 72 of file sodium_utils.cpp.
References Botan::CT::Mask< T >::is_equal(), and Botan::CT::Mask< T >::is_lt().
void Botan::Sodium::sodium_free | ( | void * | ptr | ) |
Definition at line 130 of file sodium_utils.cpp.
References Botan::load_le< uint64_t >(), and Botan::secure_scrub_memory().
void Botan::Sodium::sodium_increment | ( | uint8_t | n[], |
size_t | nlen | ||
) |
Definition at line 98 of file sodium_utils.cpp.
References b, and Botan::carry().
int Botan::Sodium::sodium_is_zero | ( | const uint8_t | nonce[], |
size_t | nlen | ||
) |
Definition at line 90 of file sodium_utils.cpp.
References b, and Botan::CT::Mask< T >::expand().
|
inline |
|
inline |
|
inline |
void * Botan::Sodium::sodium_malloc | ( | size_t | size | ) |
Definition at line 118 of file sodium_utils.cpp.
References Botan::store_le().
Referenced by sodium_allocarray().
int Botan::Sodium::sodium_memcmp | ( | const void * | x, |
const void * | y, | ||
size_t | len | ||
) |
Definition at line 66 of file sodium_utils.cpp.
References Botan::constant_time_compare().
void Botan::Sodium::sodium_memzero | ( | void * | ptr, |
size_t | len | ||
) |
Definition at line 61 of file sodium_utils.cpp.
References Botan::secure_scrub_memory().
int Botan::Sodium::sodium_mprotect_noaccess | ( | void * | ptr | ) |
Definition at line 149 of file sodium_utils.cpp.
References Botan::OS::page_prohibit_access().
int Botan::Sodium::sodium_mprotect_readwrite | ( | void * | ptr | ) |
Definition at line 155 of file sodium_utils.cpp.
References Botan::OS::page_allow_access().