mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Refactor some EC key parsing code
This commit is contained in:
parent
be50680a8c
commit
1c808a011c
2 changed files with 40 additions and 62 deletions
|
|
@ -121,8 +121,10 @@ ecp_keypair;
|
|||
* parameters. Therefore, only well-known domain parameters from trusted
|
||||
* sources should be used. See ecp_use_known_dp().
|
||||
*
|
||||
* \note The values are taken from RFC 4492's enum NamedCurve.
|
||||
* \note The values are taken from RFC 4492's enum NamedCurve,
|
||||
* except NONE which is used to denote uninitialized groups.
|
||||
*/
|
||||
#define POLARSSL_ECP_DP_NONE 0
|
||||
#define POLARSSL_ECP_DP_SECP192R1 19
|
||||
#define POLARSSL_ECP_DP_SECP224R1 21
|
||||
#define POLARSSL_ECP_DP_SECP256R1 23
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue