Botan 3.7.1
Crypto and TLS for C&
|
Identifier for a named prime order curve. More...
#include <pcurves_id.h>
Public Types | |
enum class | Code : uint8_t { secp192r1 , secp224r1 , secp256r1 , secp384r1 , secp521r1 , secp256k1 , brainpool256r1 , brainpool384r1 , brainpool512r1 , frp256v1 , sm2p256v1 , numsp512d1 } |
Public Member Functions | |
Code | code () const |
PrimeOrderCurveId (Code id) | |
std::string | to_string () const |
Convert the ID to it's commonly used name (inverse of from_string) | |
Static Public Member Functions | |
static std::optional< PrimeOrderCurveId > | from_string (std::string_view name) |
Map a string to a curve identifier. | |
Identifier for a named prime order curve.
Definition at line 27 of file pcurves_id.h.
|
strong |
Enumerator | |
---|---|
secp192r1 | secp192r1 aka P-192 |
secp224r1 | secp224r1 aka P-224 |
secp256r1 | secp256r1 aka P-256 |
secp384r1 | secp384r1 aka P-384 |
secp521r1 | secp521r1 aka P-521 |
secp256k1 | |
brainpool256r1 | |
brainpool384r1 | |
brainpool512r1 | |
frp256v1 | |
sm2p256v1 | |
numsp512d1 |
Definition at line 29 of file pcurves_id.h.
|
inline |
Definition at line 58 of file pcurves_id.h.
|
inline |
|
static |
Map a string to a curve identifier.
Definition at line 163 of file pcurves.cpp.
References brainpool256r1, brainpool384r1, brainpool512r1, frp256v1, name, numsp512d1, secp192r1, secp224r1, secp256k1, secp256r1, secp384r1, secp521r1, and sm2p256v1.
Referenced by Botan::PCurve::PrimeOrderCurve::from_name().
std::string Botan::PCurve::PrimeOrderCurveId::to_string | ( | ) | const |
Convert the ID to it's commonly used name (inverse of from_string)
Definition at line 131 of file pcurves.cpp.
References brainpool256r1, brainpool384r1, brainpool512r1, code(), frp256v1, numsp512d1, secp192r1, secp224r1, secp256k1, secp256r1, secp384r1, secp521r1, and sm2p256v1.