Botan 3.6.1
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 Botan::Sodium namespace contains a partial implementation of the libsodium API.
enum Botan::Sodium::Sodium_Constants : size_t |
Definition at line 19 of file sodium.h.
|
inline |
Definition at line 444 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 221 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 254 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 207 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 235 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_npubbytes().
|
inline |
Definition at line 375 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 157 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 192 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 142 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 172 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_chacha20poly1305_ietf_npubbytes().
|
inline |
Definition at line 363 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_KEYBYTES.
|
inline |
Definition at line 428 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_KEYBYTES, and randombytes_buf().
|
inline |
Definition at line 379 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX.
|
inline |
Definition at line 371 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 367 of file sodium.h.
References crypto_aead_chacha20poly1305_ietf_NSECBYTES.
|
inline |
Definition at line 432 of file sodium.h.
References crypto_aead_chacha20poly1305_KEYBYTES.
|
inline |
Definition at line 497 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 448 of file sodium.h.
References crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX.
|
inline |
Definition at line 440 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 436 of file sodium.h.
References crypto_aead_chacha20poly1305_NSECBYTES.
|
inline |
Definition at line 515 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 284 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 318 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 269 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 299 of file sodium_aead.cpp.
References BOTAN_UNUSED, and crypto_aead_xchacha20poly1305_ietf_npubbytes().
|
inline |
Definition at line 503 of file sodium.h.
References crypto_aead_xchacha20poly1305_ietf_KEYBYTES.
|
inline |
Definition at line 568 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 519 of file sodium.h.
References crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX.
|
inline |
Definition at line 511 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 507 of file sodium.h.
References crypto_aead_xchacha20poly1305_ietf_NSECBYTES.
|
inline |
Definition at line 864 of file sodium.h.
References crypto_auth_hmacsha512256().
|
inline |
Definition at line 852 of file sodium.h.
References crypto_auth_BYTES.
int Botan::Sodium::crypto_auth_hmacsha256 | ( | uint8_t | out[], |
const uint8_t | in[], | ||
size_t | in_len, | ||
const uint8_t | key[] ) |
Definition at line 88 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 887 of file sodium.h.
References crypto_auth_hmacsha256_BYTES.
|
inline |
Definition at line 891 of file sodium.h.
References crypto_auth_hmacsha256_KEYBYTES.
|
inline |
Definition at line 901 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 96 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 53 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 67 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 832 of file sodium.h.
References crypto_auth_hmacsha512256_BYTES.
|
inline |
Definition at line 836 of file sodium.h.
References crypto_auth_hmacsha512256_KEYBYTES.
|
inline |
Definition at line 846 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 79 of file sodium_auth.cpp.
References crypto_auth_hmacsha512256(), crypto_auth_hmacsha512256_BYTES, and crypto_verify_32().
Referenced by crypto_auth_verify().
|
inline |
Definition at line 812 of file sodium.h.
References crypto_auth_hmacsha512_BYTES.
|
inline |
Definition at line 816 of file sodium.h.
References crypto_auth_hmacsha512_KEYBYTES.
|
inline |
Definition at line 826 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 61 of file sodium_auth.cpp.
References crypto_auth_hmacsha512(), crypto_auth_hmacsha512_BYTES, and crypto_verify_64().
|
inline |
Definition at line 856 of file sodium.h.
References crypto_auth_KEYBYTES.
|
inline |
Definition at line 872 of file sodium.h.
References crypto_auth_KEYBYTES, and randombytes_buf().
|
inline |
|
inline |
Definition at line 868 of file sodium.h.
References crypto_auth_hmacsha512256_verify().
|
inline |
Definition at line 783 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305().
|
inline |
Definition at line 732 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_afternm().
|
inline |
Definition at line 728 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_beforenm().
Referenced by crypto_box_detached(), and crypto_box_open_detached().
|
inline |
Definition at line 671 of file sodium.h.
References crypto_box_BEFORENMBYTES.
|
inline |
Definition at line 779 of file sodium.h.
References crypto_box_BOXZEROBYTES.
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 37 of file sodium_box.cpp.
References crypto_box_curve25519xsalsa20poly1305_afternm(), and crypto_box_curve25519xsalsa20poly1305_beforenm().
Referenced by crypto_box().
|
inline |
Definition at line 635 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 26 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 586 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES.
|
inline |
Definition at line 602 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 21 of file sodium_box.cpp.
References crypto_scalarmult_curve25519_base(), and randombytes_buf().
Referenced by crypto_box_keypair().
|
inline |
Definition at line 594 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_MACBYTES.
|
inline |
Definition at line 598 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX.
|
inline |
Definition at line 590 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 52 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 640 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_open().
Referenced by crypto_box_curve25519xsalsa20poly1305_open(), and crypto_box_open_afternm().
|
inline |
Definition at line 578 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES.
|
inline |
Definition at line 582 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 14 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 574 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_SEEDBYTES.
|
inline |
Definition at line 606 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 67 of file sodium_box.cpp.
References crypto_box_beforenm(), and crypto_box_detached_afternm().
Referenced by crypto_box_easy().
|
inline |
Definition at line 761 of file sodium.h.
References crypto_secretbox_detached().
Referenced by crypto_box_detached(), and crypto_box_easy_afternm().
|
inline |
Definition at line 705 of file sodium.h.
References crypto_box_detached(), and crypto_box_MACBYTES.
|
inline |
Definition at line 770 of file sodium.h.
References crypto_box_detached_afternm(), and crypto_box_MACBYTES.
|
inline |
Definition at line 683 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_keypair().
|
inline |
Definition at line 663 of file sodium.h.
References crypto_box_MACBYTES.
|
inline |
Definition at line 667 of file sodium.h.
References crypto_box_MESSAGEBYTES_MAX.
|
inline |
Definition at line 659 of file sodium.h.
References crypto_box_NONCEBYTES.
|
inline |
Definition at line 792 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_open().
|
inline |
Definition at line 737 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 83 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 742 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 714 of file sodium.h.
References crypto_box_MACBYTES, and crypto_box_open_detached().
|
inline |
Definition at line 751 of file sodium.h.
References crypto_box_MACBYTES, and crypto_box_open_detached_afternm().
|
inline |
|
inline |
Definition at line 651 of file sodium.h.
References crypto_box_PUBLICKEYBYTES.
|
inline |
Definition at line 655 of file sodium.h.
References crypto_box_SECRETKEYBYTES.
|
inline |
Definition at line 679 of file sodium.h.
References crypto_box_curve25519xsalsa20poly1305_seed_keypair().
|
inline |
Definition at line 647 of file sodium.h.
References crypto_box_SEEDBYTES.
|
inline |
Definition at line 775 of file sodium.h.
References crypto_box_ZEROBYTES.
int Botan::Sodium::crypto_core_hsalsa20 | ( | uint8_t | out[], |
const uint8_t | in[], | ||
const uint8_t | key[], | ||
const uint8_t | c[] ) |
Definition at line 14 of file sodium_salsa.cpp.
References Botan::Salsa20::hsalsa20(), Botan::load_le(), and Botan::store_le().
Referenced by crypto_box_curve25519xsalsa20poly1305_beforenm().
|
inline |
Definition at line 948 of file sodium.h.
References crypto_core_hsalsa20_CONSTBYTES.
|
inline |
Definition at line 940 of file sodium.h.
References crypto_core_hsalsa20_INPUTBYTES.
|
inline |
Definition at line 944 of file sodium.h.
References crypto_core_hsalsa20_KEYBYTES.
|
inline |
Definition at line 936 of file sodium.h.
References crypto_core_hsalsa20_OUTPUTBYTES.
|
inline |
Definition at line 961 of file sodium.h.
References crypto_hash_sha512().
|
inline |
Definition at line 957 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 878 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 14 of file sodium_auth.cpp.
References Botan::HashFunction::create_or_throw().
Referenced by crypto_box_curve25519xsalsa20poly1305_seed_keypair(), and crypto_hash().
|
inline |
Definition at line 803 of file sodium.h.
References crypto_hash_sha512_BYTES.
|
inline |
Definition at line 1003 of file sodium.h.
References crypto_onetimeauth_poly1305().
|
inline |
Definition at line 991 of file sodium.h.
References crypto_onetimeauth_BYTES.
|
inline |
Definition at line 995 of file sodium.h.
References crypto_onetimeauth_KEYBYTES.
|
inline |
Definition at line 1011 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 36 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 971 of file sodium.h.
References crypto_onetimeauth_poly1305_BYTES.
|
inline |
Definition at line 975 of file sodium.h.
References crypto_onetimeauth_poly1305_KEYBYTES.
|
inline |
Definition at line 985 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 44 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 1007 of file sodium.h.
References crypto_onetimeauth_poly1305_verify().
|
inline |
Definition at line 1049 of file sodium.h.
References crypto_scalarmult_curve25519().
|
inline |
Definition at line 1045 of file sodium.h.
References crypto_scalarmult_curve25519_base().
|
inline |
Definition at line 1033 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 14 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 1017 of file sodium.h.
References crypto_scalarmult_curve25519_BYTES.
Referenced by crypto_scalarmult_bytes().
|
inline |
Definition at line 1021 of file sodium.h.
References crypto_scalarmult_curve25519_SCALARBYTES.
Referenced by crypto_scalarmult_scalarbytes().
|
inline |
|
inline |
Definition at line 1037 of file sodium.h.
References crypto_scalarmult_curve25519_scalarbytes().
|
inline |
Definition at line 351 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305().
|
inline |
Definition at line 347 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 68 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 324 of file sodium.h.
References crypto_secretbox_detached(), and crypto_secretbox_MACBYTES.
|
inline |
Definition at line 292 of file sodium.h.
References crypto_secretbox_KEYBYTES.
|
inline |
Definition at line 339 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 300 of file sodium.h.
References crypto_secretbox_MACBYTES.
|
inline |
Definition at line 304 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX.
|
inline |
Definition at line 296 of file sodium.h.
References crypto_secretbox_NONCEBYTES.
|
inline |
Definition at line 356 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 91 of file sodium_secretbox.cpp.
References Botan::MessageAuthenticationCode::create_or_throw(), Botan::StreamCipher::create_or_throw(), crypto_secretbox_KEYBYTES, crypto_secretbox_NONCEBYTES, and Botan::CT::is_equal().
Referenced by crypto_box_open_detached_afternm(), and crypto_secretbox_open_easy().
|
inline |
Definition at line 329 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 16 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 282 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES.
|
inline |
Definition at line 254 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 262 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_MACBYTES.
|
inline |
Definition at line 266 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX.
|
inline |
Definition at line 258 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 40 of file sodium_secretbox.cpp.
References Botan::clear_mem(), Botan::MessageAuthenticationCode::create_or_throw(), Botan::StreamCipher::create_or_throw(), crypto_box_curve25519xsalsa20poly1305_ZEROBYTES, crypto_secretbox_KEYBYTES, crypto_secretbox_NONCEBYTES, and Botan::CT::is_not_equal().
Referenced by crypto_box_curve25519xsalsa20poly1305_open_afternm(), and crypto_secretbox_open().
|
inline |
Definition at line 286 of file sodium.h.
References crypto_secretbox_xsalsa20poly1305_ZEROBYTES.
|
inline |
Definition at line 343 of file sodium.h.
References crypto_secretbox_ZEROBYTES.
|
inline |
Definition at line 1225 of file sodium.h.
References crypto_shorthash_siphash24().
|
inline |
Definition at line 1213 of file sodium.h.
References crypto_shorthash_siphash24_bytes().
|
inline |
Definition at line 1217 of file sodium.h.
References crypto_shorthash_siphash24_keybytes().
|
inline |
Definition at line 1229 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 28 of file sodium_auth.cpp.
References Botan::MessageAuthenticationCode::create_or_throw(), and crypto_shorthash_siphash24_KEYBYTES.
Referenced by crypto_shorthash().
|
inline |
Definition at line 1200 of file sodium.h.
References crypto_shorthash_siphash24_BYTES.
Referenced by crypto_shorthash_bytes().
|
inline |
Definition at line 1204 of file sodium.h.
References crypto_shorthash_siphash24_KEYBYTES.
Referenced by crypto_shorthash_keybytes().
|
inline |
Definition at line 1270 of file sodium.h.
References crypto_sign_BYTES.
|
inline |
Definition at line 1302 of file sodium.h.
References crypto_sign_ed25519_detached().
|
inline |
Definition at line 1235 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 42 of file sodium_25519.cpp.
References crypto_sign_ed25519_seed_keypair(), and randombytes_buf().
Referenced by crypto_sign_keypair().
|
inline |
Definition at line 1251 of file sodium.h.
References crypto_sign_ed25519_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1243 of file sodium.h.
References crypto_sign_ed25519_PUBLICKEYBYTES.
|
inline |
Definition at line 1247 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 48 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 1239 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 34 of file sodium_25519.cpp.
References Botan::ed25519_verify().
Referenced by crypto_sign_verify_detached().
|
inline |
Definition at line 1298 of file sodium.h.
References crypto_sign_ed25519_keypair().
|
inline |
Definition at line 1286 of file sodium.h.
References crypto_sign_MESSAGEBYTES_MAX.
|
inline |
|
inline |
Definition at line 1278 of file sodium.h.
References crypto_sign_PUBLICKEYBYTES.
|
inline |
Definition at line 1282 of file sodium.h.
References crypto_sign_SECRETKEYBYTES.
|
inline |
Definition at line 1294 of file sodium.h.
References crypto_sign_ed25519_seed_keypair().
|
inline |
Definition at line 1274 of file sodium.h.
References crypto_sign_SEEDBYTES.
|
inline |
Definition at line 1307 of file sodium.h.
References crypto_sign_ed25519_verify_detached().
|
inline |
Definition at line 1185 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 13 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 40 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 1082 of file sodium.h.
References crypto_stream_chacha20_ietf_KEYBYTES.
|
inline |
Definition at line 1105 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 1090 of file sodium.h.
References crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1086 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 48 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 53 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 1055 of file sodium.h.
References crypto_stream_chacha20_KEYBYTES.
|
inline |
Definition at line 1078 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 1063 of file sodium.h.
References crypto_stream_chacha20_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1059 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 21 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 26 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 1169 of file sodium.h.
References crypto_stream_xsalsa20_keybytes().
|
inline |
Definition at line 1194 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 1177 of file sodium.h.
References crypto_stream_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1173 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 52 of file sodium_salsa.cpp.
References crypto_stream_salsa20_KEYBYTES, crypto_stream_salsa20_NONCEBYTES, Botan::StreamCipher::set_iv(), Botan::SymmetricAlgorithm::set_key(), and Botan::StreamCipher::write_keystream().
|
inline |
Definition at line 1140 of file sodium.h.
References crypto_stream_xsalsa20_KEYBYTES.
|
inline |
Definition at line 1163 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 1148 of file sodium.h.
References crypto_stream_salsa20_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1144 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 60 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 65 of file sodium_salsa.cpp.
References Botan::StreamCipher::cipher(), crypto_stream_salsa20_KEYBYTES, crypto_stream_salsa20_NONCEBYTES, Botan::Salsa20::seek(), Botan::StreamCipher::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 63 of file sodium_chacha.cpp.
References Botan::StreamCipher::create_or_throw(), crypto_stream_xchacha20_KEYBYTES, and crypto_stream_xchacha20_NONCEBYTES.
|
inline |
Definition at line 1111 of file sodium.h.
References crypto_stream_xchacha20_KEYBYTES.
|
inline |
Definition at line 1134 of file sodium.h.
References crypto_stream_xchacha20_KEYBYTES, and randombytes_buf().
|
inline |
Definition at line 1119 of file sodium.h.
References crypto_stream_xchacha20_MESSAGEBYTES_MAX.
|
inline |
Definition at line 1115 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 71 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 76 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 1189 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 79 of file sodium_salsa.cpp.
References crypto_stream_xsalsa20_KEYBYTES, crypto_stream_xsalsa20_NONCEBYTES, Botan::StreamCipher::set_iv(), Botan::SymmetricAlgorithm::set_key(), and Botan::StreamCipher::write_keystream().
Referenced by crypto_stream().
|
inline |
Definition at line 907 of file sodium.h.
References crypto_stream_xsalsa20_KEYBYTES.
Referenced by crypto_stream_keybytes().
|
inline |
Definition at line 930 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 915 of file sodium.h.
References crypto_stream_xsalsa20_MESSAGEBYTES_MAX.
|
inline |
Definition at line 911 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 87 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 92 of file sodium_salsa.cpp.
References Botan::StreamCipher::cipher(), crypto_stream_xsalsa20_KEYBYTES, crypto_stream_xsalsa20_NONCEBYTES, Botan::Salsa20::seek(), Botan::StreamCipher::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 43 of file sodium_utils.cpp.
References Botan::CT::is_equal().
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 47 of file sodium_utils.cpp.
References Botan::CT::is_equal().
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 51 of file sodium_utils.cpp.
References Botan::CT::is_equal().
Referenced by crypto_auth_hmacsha512_verify().
|
inline |
Definition at line 248 of file sodium.h.
References randombytes_buf().
void Botan::Sodium::randombytes_buf | ( | void * | buf, |
size_t | size ) |
Definition at line 19 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::StreamCipher::set_iv(), Botan::SymmetricAlgorithm::set_key(), and Botan::StreamCipher::write_keystream().
|
inline |
|
inline |
|
inline |
Definition at line 232 of file sodium.h.
References randombytes_buf().
|
inline |
Definition at line 219 of file sodium.h.
References randombytes_SEEDBYTES.
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 97 of file sodium_utils.cpp.
References Botan::b, and Botan::carry().
void * Botan::Sodium::sodium_allocarray | ( | size_t | count, |
size_t | size ) |
Definition at line 130 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 65 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 118 of file sodium_utils.cpp.
References Botan::load_le(), and Botan::secure_scrub_memory().
void Botan::Sodium::sodium_increment | ( | uint8_t | n[], |
size_t | nlen ) |
Definition at line 89 of file sodium_utils.cpp.
References Botan::b, and Botan::carry().
|
inline |
int Botan::Sodium::sodium_is_zero | ( | const uint8_t | nonce[], |
size_t | nlen ) |
Definition at line 81 of file sodium_utils.cpp.
References Botan::b, and Botan::CT::Mask< T >::expand().
|
inline |
|
inline |
|
inline |
void * Botan::Sodium::sodium_malloc | ( | size_t | size | ) |
Definition at line 105 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 59 of file sodium_utils.cpp.
References Botan::CT::is_equal().
void Botan::Sodium::sodium_memzero | ( | void * | ptr, |
size_t | len ) |
Definition at line 55 of file sodium_utils.cpp.
References Botan::secure_scrub_memory().
int Botan::Sodium::sodium_mprotect_noaccess | ( | void * | ptr | ) |
Definition at line 138 of file sodium_utils.cpp.
References Botan::OS::page_prohibit_access().
int Botan::Sodium::sodium_mprotect_readwrite | ( | void * | ptr | ) |
Definition at line 143 of file sodium_utils.cpp.
References Botan::OS::page_allow_access().