7#include <botan/ec_group.h>
8#include <botan/tls_algos.h>
9#include <botan/exceptn.h>
10#include <botan/internal/fmt.h>
49 throw Invalid_State(
"kex_method_to_string unknown enum value");
66 if(str ==
"ECDHE_PSK")
72 if(str ==
"UNDEFINED")
92 throw Invalid_State(
"auth_method_to_string unknown enum value");
101 if(str ==
"IMPLICIT")
103 if(str ==
"UNDEFINED")
111 uint16_t group_id =
static_cast<uint16_t
>(group);
112 return (group_id >= 256 && group_id < 512);
117 if(group_name ==
"secp256r1")
119 if(group_name ==
"secp384r1")
121 if(group_name ==
"secp521r1")
123 if(group_name ==
"brainpool256r1")
125 if(group_name ==
"brainpool384r1")
127 if(group_name ==
"brainpool512r1")
129 if(group_name ==
"x25519")
132 if(group_name ==
"ffdhe/ietf/2048")
134 if(group_name ==
"ffdhe/ietf/3072")
136 if(group_name ==
"ffdhe/ietf/4096")
138 if(group_name ==
"ffdhe/ietf/6144")
140 if(group_name ==
"ffdhe/ietf/8192")
157 return "brainpool256r1";
159 return "brainpool384r1";
161 return "brainpool512r1";
166 return "ffdhe/ietf/2048";
168 return "ffdhe/ietf/3072";
170 return "ffdhe/ietf/4096";
172 return "ffdhe/ietf/6144";
174 return "ffdhe/ietf/8192";
Kex_Algo kex_method_from_string(std::string_view str)
Auth_Method auth_method_from_string(std::string_view str)
std::string kdf_algo_to_string(KDF_Algo algo)
std::string kex_method_to_string(Kex_Algo method)
bool group_param_is_dh(Group_Params group)
std::string group_param_to_string(Group_Params group)
std::string auth_method_to_string(Auth_Method method)
Group_Params group_param_from_string(std::string_view group_name)
std::string fmt(std::string_view format, const T &... args)