7#include <botan/internal/cpuid_features.h>
9#include <botan/exceptn.h>
18 return "scalar_sha256";
28 return "vector_sha256";
34 throw Invalid_State(
"CPUFeature invalid bit");
39 if(tok ==
"scalar_aes") {
41 }
else if(tok ==
"scalar_sha256") {
43 }
else if(tok ==
"scalar_sm3") {
45 }
else if(tok ==
"scalar_sm4") {
47 }
else if(tok ==
"vector") {
49 }
else if(tok ==
"vector_aes") {
51 }
else if(tok ==
"vector_sha256") {
53 }
else if(tok ==
"vector_sm3") {
55 }
else if(tok ==
"vector_sm4") {
static std::optional< CPUFeature > from_string(std::string_view)
std::string to_string() const