8 #include <botan/tls_suites.h>
9 #include <botan/tls_exceptn.h>
218 return std::make_pair(
"ARC4", 16);
221 return std::make_pair(
"3DES", 24);
224 return std::make_pair(
"AES-128", 16);
227 return std::make_pair(
"AES-256", 32);
230 return std::make_pair(
"SEED", 16);
233 "CipherSuite: Unknown cipher type " +
to_string(algo));
251 "CipherSuite: Unknown MAC type " +
to_string(algo));
273 std::pair<std::string, size_t> cipher_info = cipher_code_to_name(algos);
275 cipher = cipher_info.first;
276 cipher_key_length = cipher_info.second;
278 mac = mac_code_to_name(algos);
static TLS_Ciphersuite_Algos lookup_ciphersuite(u16bit suite)
std::invalid_argument Invalid_Argument
std::string to_string(u64bit n, size_t min_len)