Use SEC1 format for EC private keys.
This is not ECDSA specific, so it's now PEM_STRING_ECPRIVATEKEY etc. Submitted by: Nils Larsch <nlarsch@compuserve.de>
This commit is contained in:
@@ -275,6 +275,18 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);
|
||||
int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off);
|
||||
#endif
|
||||
|
||||
/* SEC1 ECPrivateKey */
|
||||
typedef struct ec_privatekey_st {
|
||||
int version;
|
||||
ASN1_OCTET_STRING *privateKey;
|
||||
ECPKPARAMETERS *parameters;
|
||||
ASN1_BIT_STRING *publicKey;
|
||||
} EC_PRIVATEKEY;
|
||||
|
||||
DECLARE_ASN1_ITEM(EC_PRIVATEKEY)
|
||||
DECLARE_ASN1_FUNCTIONS_const(EC_PRIVATEKEY)
|
||||
DECLARE_ASN1_ENCODE_FUNCTIONS_const(EC_PRIVATEKEY, EC_PRIVATEKEY)
|
||||
|
||||
|
||||
/* BEGIN ERROR CODES */
|
||||
/* The following lines are auto generated by the script mkerr.pl. Any changes
|
||||
|
||||
Reference in New Issue
Block a user