Refactor some EC key parsing code

This commit is contained in:
Manuel Pégourié-Gonnard 2013-07-11 13:17:43 +02:00 committed by Paul Bakker
parent be50680a8c
commit 1c808a011c
2 changed files with 40 additions and 62 deletions

View file

@ -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