Botan  2.11.0
Crypto and TLS for C++11
Namespaces | Enumerations | Functions
tls_algos.h File Reference
#include <botan/types.h>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 Botan
 
 Botan::TLS
 

Enumerations

enum  Botan::TLS::Auth_Method {
  Botan::TLS::Auth_Method::RSA, Botan::TLS::Auth_Method::DSA, Botan::TLS::Auth_Method::ECDSA, Botan::TLS::Auth_Method::IMPLICIT = 0x10000,
  Botan::TLS::Auth_Method::ANONYMOUS
}
 
enum  Botan::TLS::Cipher_Algo {
  Botan::TLS::Cipher_Algo::CHACHA20_POLY1305, Botan::TLS::Cipher_Algo::AES_128_CBC_HMAC_SHA1 = 100, Botan::TLS::Cipher_Algo::AES_128_CBC_HMAC_SHA256, Botan::TLS::Cipher_Algo::AES_128_CCM,
  Botan::TLS::Cipher_Algo::AES_128_CCM_8, Botan::TLS::Cipher_Algo::AES_128_GCM, Botan::TLS::Cipher_Algo::AES_128_OCB, Botan::TLS::Cipher_Algo::AES_256_CBC_HMAC_SHA1 = 200,
  Botan::TLS::Cipher_Algo::AES_256_CBC_HMAC_SHA256, Botan::TLS::Cipher_Algo::AES_256_CBC_HMAC_SHA384, Botan::TLS::Cipher_Algo::AES_256_CCM, Botan::TLS::Cipher_Algo::AES_256_CCM_8,
  Botan::TLS::Cipher_Algo::AES_256_GCM, Botan::TLS::Cipher_Algo::AES_256_OCB, Botan::TLS::Cipher_Algo::CAMELLIA_128_CBC_HMAC_SHA1 = 300, Botan::TLS::Cipher_Algo::CAMELLIA_128_CBC_HMAC_SHA256,
  Botan::TLS::Cipher_Algo::CAMELLIA_128_GCM, Botan::TLS::Cipher_Algo::CAMELLIA_256_CBC_HMAC_SHA1 = 400, Botan::TLS::Cipher_Algo::CAMELLIA_256_CBC_HMAC_SHA256, Botan::TLS::Cipher_Algo::CAMELLIA_256_CBC_HMAC_SHA384,
  Botan::TLS::Cipher_Algo::CAMELLIA_256_GCM, Botan::TLS::Cipher_Algo::ARIA_128_GCM = 500, Botan::TLS::Cipher_Algo::ARIA_256_GCM, Botan::TLS::Cipher_Algo::DES_EDE_CBC_HMAC_SHA1 = 1000,
  Botan::TLS::Cipher_Algo::SEED_CBC_HMAC_SHA1
}
 
enum  Botan::TLS::Group_Params : uint16_t {
  Botan::TLS::Group_Params::NONE = 0, Botan::TLS::Group_Params::SECP256R1 = 23, Botan::TLS::Group_Params::SECP384R1 = 24, Botan::TLS::Group_Params::SECP521R1 = 25,
  Botan::TLS::Group_Params::BRAINPOOL256R1 = 26, Botan::TLS::Group_Params::BRAINPOOL384R1 = 27, Botan::TLS::Group_Params::BRAINPOOL512R1 = 28, Botan::TLS::Group_Params::X25519 = 29,
  Botan::TLS::Group_Params::FFDHE_2048 = 256, Botan::TLS::Group_Params::FFDHE_3072 = 257, Botan::TLS::Group_Params::FFDHE_4096 = 258, Botan::TLS::Group_Params::FFDHE_6144 = 259,
  Botan::TLS::Group_Params::FFDHE_8192 = 260
}
 
enum  Botan::TLS::KDF_Algo { Botan::TLS::KDF_Algo::SHA_1, Botan::TLS::KDF_Algo::SHA_256, Botan::TLS::KDF_Algo::SHA_384 }
 
enum  Botan::TLS::Kex_Algo {
  Botan::TLS::Kex_Algo::STATIC_RSA, Botan::TLS::Kex_Algo::DH, Botan::TLS::Kex_Algo::ECDH, Botan::TLS::Kex_Algo::CECPQ1,
  Botan::TLS::Kex_Algo::SRP_SHA, Botan::TLS::Kex_Algo::PSK, Botan::TLS::Kex_Algo::DHE_PSK, Botan::TLS::Kex_Algo::ECDHE_PSK
}
 
enum  Botan::TLS::Nonce_Format { Botan::TLS::Nonce_Format::CBC_MODE, Botan::TLS::Nonce_Format::AEAD_IMPLICIT_4, Botan::TLS::Nonce_Format::AEAD_XOR_12 }
 
enum  Botan::TLS::Signature_Scheme : uint16_t {
  Botan::TLS::Signature_Scheme::NONE = 0x0000, Botan::TLS::Signature_Scheme::RSA_PKCS1_SHA1 = 0x0201, Botan::TLS::Signature_Scheme::RSA_PKCS1_SHA256 = 0x0401, Botan::TLS::Signature_Scheme::RSA_PKCS1_SHA384 = 0x0501,
  Botan::TLS::Signature_Scheme::RSA_PKCS1_SHA512 = 0x0601, Botan::TLS::Signature_Scheme::DSA_SHA1 = 0x0202, Botan::TLS::Signature_Scheme::DSA_SHA256 = 0x0402, Botan::TLS::Signature_Scheme::DSA_SHA384 = 0x0502,
  Botan::TLS::Signature_Scheme::DSA_SHA512 = 0x0602, Botan::TLS::Signature_Scheme::ECDSA_SHA1 = 0x0203, Botan::TLS::Signature_Scheme::ECDSA_SHA256 = 0x0403, Botan::TLS::Signature_Scheme::ECDSA_SHA384 = 0x0503,
  Botan::TLS::Signature_Scheme::ECDSA_SHA512 = 0x0603, Botan::TLS::Signature_Scheme::RSA_PSS_SHA256 = 0x0804, Botan::TLS::Signature_Scheme::RSA_PSS_SHA384 = 0x0805, Botan::TLS::Signature_Scheme::RSA_PSS_SHA512 = 0x0806,
  Botan::TLS::Signature_Scheme::EDDSA_25519 = 0x0807, Botan::TLS::Signature_Scheme::EDDSA_448 = 0x0808
}
 

Functions

const std::vector< Signature_Scheme > & Botan::TLS::all_signature_schemes ()
 
Auth_Method Botan::TLS::auth_method_from_string (const std::string &str)
 
std::string Botan::TLS::auth_method_to_string (Auth_Method method)
 
Group_Params Botan::TLS::group_param_from_string (const std::string &group_name)
 
bool Botan::TLS::group_param_is_dh (Group_Params group)
 
std::string Botan::TLS::group_param_to_string (Group_Params group)
 
std::string Botan::TLS::hash_function_of_scheme (Signature_Scheme scheme)
 
std::string Botan::TLS::kdf_algo_to_string (KDF_Algo algo)
 
Kex_Algo Botan::TLS::kex_method_from_string (const std::string &str)
 
std::string Botan::TLS::kex_method_to_string (Kex_Algo method)
 
bool Botan::TLS::key_exchange_is_psk (Kex_Algo m)
 
std::string Botan::TLS::padding_string_for_scheme (Signature_Scheme scheme)
 
std::string Botan::TLS::sig_scheme_to_string (Signature_Scheme scheme)
 
std::string Botan::TLS::signature_algorithm_of_scheme (Signature_Scheme scheme)
 
bool Botan::TLS::signature_scheme_is_known (Signature_Scheme scheme)