Botan 3.6.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::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 28 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 30 of file pcurves_id.h.
|
inline |
Definition at line 65 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 131 of file pcurves.cpp.
References brainpool256r1, brainpool384r1, brainpool512r1, frp256v1, numsp512d1, secp192r1, secp224r1, secp256k1, secp256r1, secp384r1, secp521r1, and sm2p256v1.
|
inline |
|
static |
Map a string to a curve identifier.
Definition at line 180 of file pcurves.cpp.
References brainpool256r1, brainpool384r1, brainpool512r1, frp256v1, name, numsp512d1, secp192r1, secp224r1, 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 148 of file pcurves.cpp.
References brainpool256r1, brainpool384r1, brainpool512r1, code(), frp256v1, numsp512d1, secp192r1, secp224r1, secp256k1, secp256r1, secp384r1, secp521r1, and sm2p256v1.