Added support code for RSA and EC key encoding (including reconstruction of all public and private key elements from the private key structure), with raw and PKCS#8 formats, both in DER and PEM.

This commit is contained in:
Thomas Pornin 2018-08-06 00:02:36 +02:00
parent cfbc702d3d
commit d8fa415fca
32 changed files with 3528 additions and 105 deletions

View file

@ -298,11 +298,22 @@ int uses_ecdhe(unsigned suite);
*/
void list_names(void);
/*
* Print out all known elliptic curve names.
*/
void list_curves(void);
/*
* Get the symbolic name for an elliptic curve (by ID).
*/
const char *ec_curve_name(int curve);
/*
* Get a curve by symbolic name. If the name is not recognized, -1 is
* returned.
*/
int get_curve_by_name(const char *str);
/*
* Get the symbolic name for a hash function name (by ID).
*/