mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Add OIDs and TLS IDs for prime Koblitz curves
This commit is contained in:
@ -140,6 +140,15 @@ static const ecp_curve_info ecp_supported_curves[] =
|
||||
#endif
|
||||
#if defined(POLARSSL_ECP_DP_SECP192R1_ENABLED)
|
||||
{ POLARSSL_ECP_DP_SECP192R1, 19, 192, "secp192r1" },
|
||||
#endif
|
||||
#if defined(POLARSSL_ECP_DP_SECP256K1_ENABLED)
|
||||
{ POLARSSL_ECP_DP_SECP256K1, 22, 256, "secp256k1" },
|
||||
#endif
|
||||
#if defined(POLARSSL_ECP_DP_SECP224K1_ENABLED)
|
||||
{ POLARSSL_ECP_DP_SECP224K1, 20, 224, "secp224k1" },
|
||||
#endif
|
||||
#if defined(POLARSSL_ECP_DP_SECP192K1_ENABLED)
|
||||
{ POLARSSL_ECP_DP_SECP192K1, 18, 192, "secp192k1" },
|
||||
#endif
|
||||
{ POLARSSL_ECP_DP_NONE, 0, 0, NULL },
|
||||
};
|
||||
|
@ -402,6 +402,18 @@ static const oid_ecp_grp_t oid_ecp_grp[] =
|
||||
{ ADD_LEN( OID_EC_GRP_SECP521R1 ), "secp521r1", "secp521r1" },
|
||||
POLARSSL_ECP_DP_SECP521R1,
|
||||
},
|
||||
{
|
||||
{ ADD_LEN( OID_EC_GRP_SECP192K1 ), "secp192k1", "secp192k1" },
|
||||
POLARSSL_ECP_DP_SECP192K1,
|
||||
},
|
||||
{
|
||||
{ ADD_LEN( OID_EC_GRP_SECP224K1 ), "secp224k1", "secp224k1" },
|
||||
POLARSSL_ECP_DP_SECP224K1,
|
||||
},
|
||||
{
|
||||
{ ADD_LEN( OID_EC_GRP_SECP256K1 ), "secp256k1", "secp256k1" },
|
||||
POLARSSL_ECP_DP_SECP256K1,
|
||||
},
|
||||
{
|
||||
{ ADD_LEN( OID_EC_GRP_BP256R1 ), "brainpoolP256r1","brainpool256r1" },
|
||||
POLARSSL_ECP_DP_BP256R1,
|
||||
|
Reference in New Issue
Block a user