Botan 3.4.0
Crypto and TLS for C&
Namespaces | Enumerations | Functions
sodium.h File Reference

Public Header. More...

#include <botan/types.h>

Go to the source code of this file.

Namespaces

namespace  Botan
 
namespace  Botan::Sodium
 

Enumerations

enum  Botan::Sodium::Sodium_Constants : size_t {
  Botan::Sodium::SODIUM_SIZE_MAX = 0xFFFFFFFF , Botan::Sodium::crypto_aead_chacha20poly1305_ABYTES = 16 , Botan::Sodium::crypto_aead_chacha20poly1305_KEYBYTES = 32 , Botan::Sodium::crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX ,
  Botan::Sodium::crypto_aead_chacha20poly1305_NPUBBYTES = 8 , Botan::Sodium::crypto_aead_chacha20poly1305_NSECBYTES = 0 , Botan::Sodium::crypto_aead_chacha20poly1305_ietf_ABYTES = 16 , Botan::Sodium::crypto_aead_chacha20poly1305_ietf_KEYBYTES = 32 ,
  Botan::Sodium::crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX , Botan::Sodium::crypto_aead_chacha20poly1305_ietf_NPUBBYTES = 12 , Botan::Sodium::crypto_aead_chacha20poly1305_ietf_NSECBYTES = 0 , Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_ABYTES = 16 ,
  Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_KEYBYTES = 32 , Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX , Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_NPUBBYTES = 24 , Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_NSECBYTES = 0 ,
  Botan::Sodium::crypto_auth_hmacsha256_BYTES = 32 , Botan::Sodium::crypto_auth_hmacsha256_KEYBYTES = 32 , Botan::Sodium::crypto_auth_hmacsha512256_BYTES = 32 , Botan::Sodium::crypto_auth_hmacsha512256_KEYBYTES = 32 ,
  Botan::Sodium::crypto_auth_hmacsha512_BYTES = 64 , Botan::Sodium::crypto_auth_hmacsha512_KEYBYTES = 32 , Botan::Sodium::crypto_auth_BYTES = crypto_auth_hmacsha512256_BYTES , Botan::Sodium::crypto_auth_KEYBYTES = crypto_auth_hmacsha512256_KEYBYTES ,
  Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES = 32 , Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES = 16 , Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_MACBYTES = 16 , Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX ,
  Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_NONCEBYTES = 24 , Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES = 32 , Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES = 32 , Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_SEEDBYTES = 32 ,
  Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_ZEROBYTES , Botan::Sodium::crypto_box_BEFORENMBYTES = crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES , Botan::Sodium::crypto_box_BOXZEROBYTES = crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES , Botan::Sodium::crypto_box_MACBYTES = crypto_box_curve25519xsalsa20poly1305_MACBYTES ,
  Botan::Sodium::crypto_box_MESSAGEBYTES_MAX = crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX , Botan::Sodium::crypto_box_NONCEBYTES = crypto_box_curve25519xsalsa20poly1305_NONCEBYTES , Botan::Sodium::crypto_box_PUBLICKEYBYTES = crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES , Botan::Sodium::crypto_box_SECRETKEYBYTES = crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES ,
  Botan::Sodium::crypto_box_SEEDBYTES = crypto_box_curve25519xsalsa20poly1305_SEEDBYTES , Botan::Sodium::crypto_box_ZEROBYTES = crypto_box_curve25519xsalsa20poly1305_ZEROBYTES , Botan::Sodium::crypto_core_hchacha20_CONSTBYTES = 16 , Botan::Sodium::crypto_core_hchacha20_INPUTBYTES = 16 ,
  Botan::Sodium::crypto_core_hchacha20_KEYBYTES = 32 , Botan::Sodium::crypto_core_hchacha20_OUTPUTBYTES = 32 , Botan::Sodium::crypto_core_hsalsa20_CONSTBYTES = 16 , Botan::Sodium::crypto_core_hsalsa20_INPUTBYTES = 16 ,
  Botan::Sodium::crypto_core_hsalsa20_KEYBYTES = 32 , Botan::Sodium::crypto_core_hsalsa20_OUTPUTBYTES = 32 , Botan::Sodium::crypto_hash_sha256_BYTES = 32 , Botan::Sodium::crypto_hash_sha512_BYTES = 64 ,
  Botan::Sodium::crypto_hash_BYTES = crypto_hash_sha512_BYTES , Botan::Sodium::crypto_onetimeauth_poly1305_BYTES = 16 , Botan::Sodium::crypto_onetimeauth_poly1305_KEYBYTES = 32 , Botan::Sodium::crypto_onetimeauth_BYTES = crypto_onetimeauth_poly1305_BYTES ,
  Botan::Sodium::crypto_onetimeauth_KEYBYTES = crypto_onetimeauth_poly1305_KEYBYTES , Botan::Sodium::crypto_scalarmult_curve25519_BYTES = 32 , Botan::Sodium::crypto_scalarmult_curve25519_SCALARBYTES = 32 , Botan::Sodium::crypto_scalarmult_BYTES = crypto_scalarmult_curve25519_BYTES ,
  Botan::Sodium::crypto_scalarmult_SCALARBYTES = crypto_scalarmult_curve25519_SCALARBYTES , Botan::Sodium::crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES = 16 , Botan::Sodium::crypto_secretbox_xsalsa20poly1305_KEYBYTES = 32 , Botan::Sodium::crypto_secretbox_xsalsa20poly1305_MACBYTES = 16 ,
  Botan::Sodium::crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX , Botan::Sodium::crypto_secretbox_xsalsa20poly1305_NONCEBYTES = 24 , Botan::Sodium::crypto_secretbox_xsalsa20poly1305_ZEROBYTES , Botan::Sodium::crypto_secretbox_BOXZEROBYTES = crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES ,
  Botan::Sodium::crypto_secretbox_KEYBYTES = crypto_secretbox_xsalsa20poly1305_KEYBYTES , Botan::Sodium::crypto_secretbox_MACBYTES = crypto_secretbox_xsalsa20poly1305_MACBYTES , Botan::Sodium::crypto_secretbox_MESSAGEBYTES_MAX = crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX , Botan::Sodium::crypto_secretbox_NONCEBYTES = crypto_secretbox_xsalsa20poly1305_NONCEBYTES ,
  Botan::Sodium::crypto_secretbox_ZEROBYTES = crypto_secretbox_xsalsa20poly1305_ZEROBYTES , Botan::Sodium::crypto_shorthash_siphash24_BYTES = 8 , Botan::Sodium::crypto_shorthash_siphash24_KEYBYTES = 16 , Botan::Sodium::crypto_shorthash_BYTES = crypto_shorthash_siphash24_BYTES ,
  Botan::Sodium::crypto_shorthash_KEYBYTES = crypto_shorthash_siphash24_KEYBYTES , Botan::Sodium::crypto_sign_ed25519_BYTES = 64 , Botan::Sodium::crypto_sign_ed25519_MESSAGEBYTES_MAX = (SODIUM_SIZE_MAX - crypto_sign_ed25519_BYTES) , Botan::Sodium::crypto_sign_ed25519_PUBLICKEYBYTES = 32 ,
  Botan::Sodium::crypto_sign_ed25519_SECRETKEYBYTES = (32 + 32) , Botan::Sodium::crypto_sign_ed25519_SEEDBYTES = 32 , Botan::Sodium::crypto_sign_BYTES = crypto_sign_ed25519_BYTES , Botan::Sodium::crypto_sign_MESSAGEBYTES_MAX = crypto_sign_ed25519_MESSAGEBYTES_MAX ,
  Botan::Sodium::crypto_sign_PUBLICKEYBYTES = crypto_sign_ed25519_PUBLICKEYBYTES , Botan::Sodium::crypto_sign_SECRETKEYBYTES = crypto_sign_ed25519_SECRETKEYBYTES , Botan::Sodium::crypto_sign_SEEDBYTES = crypto_sign_ed25519_SEEDBYTES , Botan::Sodium::crypto_stream_chacha20_KEYBYTES = 32 ,
  Botan::Sodium::crypto_stream_chacha20_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX , Botan::Sodium::crypto_stream_chacha20_NONCEBYTES = 8 , Botan::Sodium::crypto_stream_chacha20_ietf_KEYBYTES = 32 , Botan::Sodium::crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX ,
  Botan::Sodium::crypto_stream_chacha20_ietf_NONCEBYTES = 12 , Botan::Sodium::crypto_stream_salsa20_KEYBYTES = 32 , Botan::Sodium::crypto_stream_salsa20_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX , Botan::Sodium::crypto_stream_salsa20_NONCEBYTES = 8 ,
  Botan::Sodium::crypto_stream_xchacha20_KEYBYTES = 32 , Botan::Sodium::crypto_stream_xchacha20_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX , Botan::Sodium::crypto_stream_xchacha20_NONCEBYTES = 24 , Botan::Sodium::crypto_stream_xsalsa20_KEYBYTES = 32 ,
  Botan::Sodium::crypto_stream_xsalsa20_MESSAGEBYTES_MAX = SODIUM_SIZE_MAX , Botan::Sodium::crypto_stream_xsalsa20_NONCEBYTES = 24 , Botan::Sodium::crypto_stream_KEYBYTES = crypto_stream_xsalsa20_KEYBYTES , Botan::Sodium::crypto_stream_MESSAGEBYTES_MAX = crypto_stream_xsalsa20_MESSAGEBYTES_MAX ,
  Botan::Sodium::crypto_stream_NONCEBYTES = crypto_stream_xsalsa20_NONCEBYTES , Botan::Sodium::crypto_verify_16_BYTES = 16 , Botan::Sodium::crypto_verify_32_BYTES = 32 , Botan::Sodium::crypto_verify_64_BYTES = 64 ,
  Botan::Sodium::randombytes_SEEDBYTES = 32
}
 

Functions

size_t Botan::Sodium::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[])
 
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[])
 
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[])
 
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[])
 
size_t Botan::Sodium::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[])
 
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[])
 
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[])
 
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[])
 
size_t Botan::Sodium::crypto_aead_chacha20poly1305_ietf_keybytes ()
 
void Botan::Sodium::crypto_aead_chacha20poly1305_ietf_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_aead_chacha20poly1305_ietf_messagebytes_max ()
 
size_t Botan::Sodium::crypto_aead_chacha20poly1305_ietf_npubbytes ()
 
size_t Botan::Sodium::crypto_aead_chacha20poly1305_ietf_nsecbytes ()
 
size_t Botan::Sodium::crypto_aead_chacha20poly1305_keybytes ()
 
void Botan::Sodium::crypto_aead_chacha20poly1305_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_aead_chacha20poly1305_messagebytes_max ()
 
size_t Botan::Sodium::crypto_aead_chacha20poly1305_npubbytes ()
 
size_t Botan::Sodium::crypto_aead_chacha20poly1305_nsecbytes ()
 
size_t Botan::Sodium::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[])
 
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[])
 
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[])
 
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[])
 
size_t Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_keybytes ()
 
void Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_messagebytes_max ()
 
size_t Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_npubbytes ()
 
size_t Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_nsecbytes ()
 
int Botan::Sodium::crypto_auth (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
size_t Botan::Sodium::crypto_auth_bytes ()
 
int Botan::Sodium::crypto_auth_hmacsha256 (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
size_t Botan::Sodium::crypto_auth_hmacsha256_bytes ()
 
size_t Botan::Sodium::crypto_auth_hmacsha256_keybytes ()
 
void Botan::Sodium::crypto_auth_hmacsha256_keygen (uint8_t k[32])
 
int Botan::Sodium::crypto_auth_hmacsha256_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
int Botan::Sodium::crypto_auth_hmacsha512 (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
int Botan::Sodium::crypto_auth_hmacsha512256 (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
size_t Botan::Sodium::crypto_auth_hmacsha512256_bytes ()
 
size_t Botan::Sodium::crypto_auth_hmacsha512256_keybytes ()
 
void Botan::Sodium::crypto_auth_hmacsha512256_keygen (uint8_t k[32])
 
int Botan::Sodium::crypto_auth_hmacsha512256_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
size_t Botan::Sodium::crypto_auth_hmacsha512_bytes ()
 
size_t Botan::Sodium::crypto_auth_hmacsha512_keybytes ()
 
void Botan::Sodium::crypto_auth_hmacsha512_keygen (uint8_t k[32])
 
int Botan::Sodium::crypto_auth_hmacsha512_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
size_t Botan::Sodium::crypto_auth_keybytes ()
 
void Botan::Sodium::crypto_auth_keygen (uint8_t k[])
 
const char * Botan::Sodium::crypto_auth_primitive ()
 
int Botan::Sodium::crypto_auth_verify (const uint8_t mac[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
int Botan::Sodium::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 Botan::Sodium::crypto_box_afternm (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[])
 
int Botan::Sodium::crypto_box_beforenm (uint8_t key[], const uint8_t pk[32], const uint8_t sk[32])
 
size_t Botan::Sodium::crypto_box_beforenmbytes ()
 
size_t Botan::Sodium::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])
 
int Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_afternm (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[])
 
int Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_beforenm (uint8_t key[], const uint8_t pk[32], const uint8_t sk[32])
 
size_t Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_beforenmbytes ()
 
size_t Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_boxzerobytes ()
 
int Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_keypair (uint8_t pk[32], uint8_t sk[32])
 
size_t Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_macbytes ()
 
size_t Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_messagebytes_max ()
 
size_t Botan::Sodium::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])
 
int Botan::Sodium::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 Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_publickeybytes ()
 
size_t Botan::Sodium::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])
 
size_t Botan::Sodium::crypto_box_curve25519xsalsa20poly1305_seedbytes ()
 
size_t Botan::Sodium::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])
 
int Botan::Sodium::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 Botan::Sodium::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 Botan::Sodium::crypto_box_easy_afternm (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[])
 
int Botan::Sodium::crypto_box_keypair (uint8_t pk[32], uint8_t sk[32])
 
size_t Botan::Sodium::crypto_box_macbytes ()
 
size_t Botan::Sodium::crypto_box_messagebytes_max ()
 
size_t Botan::Sodium::crypto_box_noncebytes ()
 
int Botan::Sodium::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 Botan::Sodium::crypto_box_open_afternm (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[])
 
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])
 
int Botan::Sodium::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 Botan::Sodium::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 Botan::Sodium::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 * Botan::Sodium::crypto_box_primitive ()
 
size_t Botan::Sodium::crypto_box_publickeybytes ()
 
size_t Botan::Sodium::crypto_box_secretkeybytes ()
 
int Botan::Sodium::crypto_box_seed_keypair (uint8_t pk[32], uint8_t sk[32], const uint8_t seed[])
 
size_t Botan::Sodium::crypto_box_seedbytes ()
 
size_t Botan::Sodium::crypto_box_zerobytes ()
 
int Botan::Sodium::crypto_core_hsalsa20 (uint8_t out[], const uint8_t in[], const uint8_t key[], const uint8_t c[])
 
size_t Botan::Sodium::crypto_core_hsalsa20_constbytes ()
 
size_t Botan::Sodium::crypto_core_hsalsa20_inputbytes ()
 
size_t Botan::Sodium::crypto_core_hsalsa20_keybytes ()
 
size_t Botan::Sodium::crypto_core_hsalsa20_outputbytes ()
 
int Botan::Sodium::crypto_hash (uint8_t out[], const uint8_t in[], size_t in_len)
 
size_t Botan::Sodium::crypto_hash_bytes ()
 
const char * Botan::Sodium::crypto_hash_primitive ()
 
int Botan::Sodium::crypto_hash_sha256 (uint8_t out[], const uint8_t in[], size_t in_len)
 
size_t Botan::Sodium::crypto_hash_sha256_bytes ()
 
int Botan::Sodium::crypto_hash_sha512 (uint8_t out[64], const uint8_t in[], size_t in_len)
 
size_t Botan::Sodium::crypto_hash_sha512_bytes ()
 
int Botan::Sodium::crypto_onetimeauth (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
size_t Botan::Sodium::crypto_onetimeauth_bytes ()
 
size_t Botan::Sodium::crypto_onetimeauth_keybytes ()
 
void Botan::Sodium::crypto_onetimeauth_keygen (uint8_t k[32])
 
int Botan::Sodium::crypto_onetimeauth_poly1305 (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
size_t Botan::Sodium::crypto_onetimeauth_poly1305_bytes ()
 
size_t Botan::Sodium::crypto_onetimeauth_poly1305_keybytes ()
 
void Botan::Sodium::crypto_onetimeauth_poly1305_keygen (uint8_t k[32])
 
int Botan::Sodium::crypto_onetimeauth_poly1305_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
const char * Botan::Sodium::crypto_onetimeauth_primitive ()
 
int Botan::Sodium::crypto_onetimeauth_verify (const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
 
int Botan::Sodium::crypto_scalarmult (uint8_t out[], const uint8_t scalar[], const uint8_t base[])
 
int Botan::Sodium::crypto_scalarmult_base (uint8_t out[], const uint8_t scalar[])
 
size_t Botan::Sodium::crypto_scalarmult_bytes ()
 
int Botan::Sodium::crypto_scalarmult_curve25519 (uint8_t out[32], const uint8_t scalar[32], const uint8_t basepoint[32])
 
int Botan::Sodium::crypto_scalarmult_curve25519_base (uint8_t out[32], const uint8_t scalar[32])
 
size_t Botan::Sodium::crypto_scalarmult_curve25519_bytes ()
 
size_t Botan::Sodium::crypto_scalarmult_curve25519_scalarbytes ()
 
const char * Botan::Sodium::crypto_scalarmult_primitive ()
 
size_t Botan::Sodium::crypto_scalarmult_scalarbytes ()
 
int Botan::Sodium::crypto_secretbox (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[])
 
size_t Botan::Sodium::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[])
 
int Botan::Sodium::crypto_secretbox_easy (uint8_t ctext[], const uint8_t ptext[], size_t ptext_len, const uint8_t nonce[], const uint8_t key[])
 
size_t Botan::Sodium::crypto_secretbox_keybytes ()
 
void Botan::Sodium::crypto_secretbox_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_secretbox_macbytes ()
 
size_t Botan::Sodium::crypto_secretbox_messagebytes_max ()
 
size_t Botan::Sodium::crypto_secretbox_noncebytes ()
 
int Botan::Sodium::crypto_secretbox_open (uint8_t ptext[], const uint8_t ctext[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[])
 
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[])
 
int Botan::Sodium::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 * Botan::Sodium::crypto_secretbox_primitive ()
 
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[])
 
size_t Botan::Sodium::crypto_secretbox_xsalsa20poly1305_boxzerobytes ()
 
size_t Botan::Sodium::crypto_secretbox_xsalsa20poly1305_keybytes ()
 
void Botan::Sodium::crypto_secretbox_xsalsa20poly1305_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_secretbox_xsalsa20poly1305_macbytes ()
 
size_t Botan::Sodium::crypto_secretbox_xsalsa20poly1305_messagebytes_max ()
 
size_t Botan::Sodium::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[])
 
size_t Botan::Sodium::crypto_secretbox_xsalsa20poly1305_zerobytes ()
 
size_t Botan::Sodium::crypto_secretbox_zerobytes ()
 
int Botan::Sodium::crypto_shorthash (uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t k[16])
 
size_t Botan::Sodium::crypto_shorthash_bytes ()
 
size_t Botan::Sodium::crypto_shorthash_keybytes ()
 
void Botan::Sodium::crypto_shorthash_keygen (uint8_t k[16])
 
const char * Botan::Sodium::crypto_shorthash_primitive ()
 
int Botan::Sodium::crypto_shorthash_siphash24 (uint8_t out[8], const uint8_t in[], size_t in_len, const uint8_t key[16])
 
size_t Botan::Sodium::crypto_shorthash_siphash24_bytes ()
 
size_t Botan::Sodium::crypto_shorthash_siphash24_keybytes ()
 
size_t Botan::Sodium::crypto_sign_bytes ()
 
int Botan::Sodium::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 Botan::Sodium::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])
 
int Botan::Sodium::crypto_sign_ed25519_keypair (uint8_t pk[32], uint8_t sk[64])
 
size_t Botan::Sodium::crypto_sign_ed25519_messagebytes_max ()
 
size_t Botan::Sodium::crypto_sign_ed25519_publickeybytes ()
 
size_t Botan::Sodium::crypto_sign_ed25519_secretkeybytes ()
 
int Botan::Sodium::crypto_sign_ed25519_seed_keypair (uint8_t pk[], uint8_t sk[], const uint8_t seed[])
 
size_t Botan::Sodium::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])
 
int Botan::Sodium::crypto_sign_keypair (uint8_t pk[32], uint8_t sk[32])
 
size_t Botan::Sodium::crypto_sign_messagebytes_max ()
 
const char * Botan::Sodium::crypto_sign_primitive ()
 
size_t Botan::Sodium::crypto_sign_publickeybytes ()
 
size_t Botan::Sodium::crypto_sign_secretkeybytes ()
 
int Botan::Sodium::crypto_sign_seed_keypair (uint8_t pk[32], uint8_t sk[32], const uint8_t seed[])
 
size_t Botan::Sodium::crypto_sign_seedbytes ()
 
int Botan::Sodium::crypto_sign_verify_detached (const uint8_t sig[], const uint8_t in[], size_t in_len, const uint8_t pk[32])
 
int Botan::Sodium::crypto_stream (uint8_t out[], size_t out_len, const uint8_t nonce[24], const uint8_t key[32])
 
int Botan::Sodium::crypto_stream_chacha20 (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[])
 
int Botan::Sodium::crypto_stream_chacha20_ietf (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[])
 
size_t Botan::Sodium::crypto_stream_chacha20_ietf_keybytes ()
 
void Botan::Sodium::crypto_stream_chacha20_ietf_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_stream_chacha20_ietf_messagebytes_max ()
 
size_t Botan::Sodium::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[])
 
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[])
 
size_t Botan::Sodium::crypto_stream_chacha20_keybytes ()
 
void Botan::Sodium::crypto_stream_chacha20_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_stream_chacha20_messagebytes_max ()
 
size_t Botan::Sodium::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[])
 
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[])
 
size_t Botan::Sodium::crypto_stream_keybytes ()
 
void Botan::Sodium::crypto_stream_keygen (uint8_t key[32])
 
size_t Botan::Sodium::crypto_stream_messagebytes_max ()
 
size_t Botan::Sodium::crypto_stream_noncebytes ()
 
const char * Botan::Sodium::crypto_stream_primitive ()
 
int Botan::Sodium::crypto_stream_salsa20 (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[])
 
size_t Botan::Sodium::crypto_stream_salsa20_keybytes ()
 
void Botan::Sodium::crypto_stream_salsa20_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_stream_salsa20_messagebytes_max ()
 
size_t Botan::Sodium::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[])
 
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[])
 
int Botan::Sodium::crypto_stream_xchacha20 (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[])
 
size_t Botan::Sodium::crypto_stream_xchacha20_keybytes ()
 
void Botan::Sodium::crypto_stream_xchacha20_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_stream_xchacha20_messagebytes_max ()
 
size_t Botan::Sodium::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[])
 
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[])
 
int Botan::Sodium::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 Botan::Sodium::crypto_stream_xsalsa20 (uint8_t out[], size_t ctext_len, const uint8_t nonce[], const uint8_t key[])
 
size_t Botan::Sodium::crypto_stream_xsalsa20_keybytes ()
 
void Botan::Sodium::crypto_stream_xsalsa20_keygen (uint8_t k[32])
 
size_t Botan::Sodium::crypto_stream_xsalsa20_messagebytes_max ()
 
size_t Botan::Sodium::crypto_stream_xsalsa20_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[])
 
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[])
 
int Botan::Sodium::crypto_verify_16 (const uint8_t x[16], const uint8_t y[16])
 
int Botan::Sodium::crypto_verify_32 (const uint8_t x[32], const uint8_t y[32])
 
int Botan::Sodium::crypto_verify_64 (const uint8_t x[64], const uint8_t y[64])
 
void Botan::Sodium::randombytes (uint8_t buf[], size_t buf_len)
 
void Botan::Sodium::randombytes_buf (void *buf, size_t size)
 
void Botan::Sodium::randombytes_buf_deterministic (void *buf, size_t size, const uint8_t seed[randombytes_SEEDBYTES])
 
int Botan::Sodium::randombytes_close ()
 
const char * Botan::Sodium::randombytes_implementation_name ()
 
uint32_t Botan::Sodium::randombytes_random ()
 
size_t Botan::Sodium::randombytes_seedbytes ()
 
void Botan::Sodium::randombytes_stir ()
 
uint32_t Botan::Sodium::randombytes_uniform (uint32_t upper_bound)
 
void Botan::Sodium::sodium_add (uint8_t a[], const uint8_t b[], size_t len)
 
void * Botan::Sodium::sodium_allocarray (size_t count, size_t size)
 
int Botan::Sodium::sodium_compare (const uint8_t x[], const uint8_t y[], size_t len)
 
void Botan::Sodium::sodium_free (void *ptr)
 
void Botan::Sodium::sodium_increment (uint8_t n[], size_t nlen)
 
int Botan::Sodium::sodium_init ()
 
int Botan::Sodium::sodium_is_zero (const uint8_t nonce[], size_t nlen)
 
int Botan::Sodium::sodium_library_minimal ()
 
int Botan::Sodium::sodium_library_version_major ()
 
int Botan::Sodium::sodium_library_version_minor ()
 
void * Botan::Sodium::sodium_malloc (size_t size)
 
int Botan::Sodium::sodium_memcmp (const void *x, const void *y, size_t len)
 
void Botan::Sodium::sodium_memzero (void *ptr, size_t len)
 
int Botan::Sodium::sodium_mprotect_noaccess (void *ptr)
 
int Botan::Sodium::sodium_mprotect_readwrite (void *ptr)
 
const char * Botan::Sodium::sodium_version_string ()
 

Detailed Description

Public Header.

Definition in file sodium.h.