From 136ac920e656d7b2de8c9758fa252993e6f44f25 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 2 Mar 2010 15:26:02 +0000 Subject: For PEM encoding ECC domain parameters I had been using the identifier "ECC DOMAIN PARAMETERS", because I couldn't find any other library that offered PEM encoding to be compatible with so I just picked something. Turns out OpenSSL does have PEM encoding of EC params (openssl ecparam), and uses "EC PARAMETERS". As good as anything else, and allows interop, so change to use that. --- src/pubkey/ec_dompar/ec_dompar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pubkey/ec_dompar') diff --git a/src/pubkey/ec_dompar/ec_dompar.cpp b/src/pubkey/ec_dompar/ec_dompar.cpp index 7910e898f..42ae9211e 100644 --- a/src/pubkey/ec_dompar/ec_dompar.cpp +++ b/src/pubkey/ec_dompar/ec_dompar.cpp @@ -35,7 +35,7 @@ EC_Domain_Params::EC_Domain_Params(const std::string& pem) DataSource_Memory input(pem); *this = EC_Domain_Params( - PEM_Code::decode_check_label(input, "ECC DOMAIN PARAMETERS")); + PEM_Code::decode_check_label(input, "EC PARAMETERS")); } } @@ -136,7 +136,7 @@ EC_Domain_Params::DER_encode(EC_Domain_Params_Encoding form) const std::string EC_Domain_Params::PEM_encode() const { SecureVector der = DER_encode(EC_DOMPAR_ENC_EXPLICIT); - return PEM_Code::encode(der, "ECC DOMAIN PARAMETERS"); + return PEM_Code::encode(der, "EC PARAMETERS"); } } -- cgit v1.2.3