Botan 3.5.0
Crypto and TLS for C&
|
Identifier for a named prime order curve. More...
#include <pcurves_id.h>
Public Types | |
enum class | Code : uint8_t { secp256r1 , secp384r1 , secp521r1 , secp256k1 , brainpool256r1 , brainpool384r1 , brainpool512r1 , frp256v1 , sm2p256v1 } |
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::vector< PrimeOrderCurveId > | all () |
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 | |
---|---|
secp256r1 | secp256r1 aka P-256 |
secp384r1 | secp384r1 aka P-384 |
secp521r1 | secp521r1 aka P-521 |
secp256k1 | |
brainpool256r1 | |
brainpool384r1 | |
brainpool512r1 | |
frp256v1 | |
sm2p256v1 |
Definition at line 29 of file pcurves_id.h.
|
inline |
Definition at line 59 of file pcurves_id.h.
|
static |
Return a list of all of the defined PrimeOrderCurveId
Note this list always includes all curves, even if some were disabled at build time.
Definition at line 104 of file pcurves.cpp.
References brainpool256r1, brainpool384r1, brainpool512r1, frp256v1, secp256k1, secp256r1, secp384r1, secp521r1, and sm2p256v1.
|
inline |
|
static |
Map a string to a curve identifier.
Definition at line 144 of file pcurves.cpp.
References brainpool256r1, brainpool384r1, brainpool512r1, frp256v1, name, secp256k1, secp256r1, secp384r1, secp521r1, and sm2p256v1.
std::string Botan::PCurve::PrimeOrderCurveId::to_string | ( | ) | const |
Convert the ID to it's commonly used name (inverse of from_string)
Definition at line 118 of file pcurves.cpp.
References brainpool256r1, brainpool384r1, brainpool512r1, code(), frp256v1, secp256k1, secp256r1, secp384r1, secp521r1, and sm2p256v1.