diff options
author | lloyd <[email protected]> | 2010-03-02 15:26:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-02 15:26:02 +0000 |
commit | 136ac920e656d7b2de8c9758fa252993e6f44f25 (patch) | |
tree | e8009b757ecfa9427979fd5c9b659d7775234e7f /src/pubkey/ec_dompar/ec_dompar.cpp | |
parent | e60403e98ebe6b1dc5f1f512e1e06924ef07ba04 (diff) |
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.
Diffstat (limited to 'src/pubkey/ec_dompar/ec_dompar.cpp')
-rw-r--r-- | src/pubkey/ec_dompar/ec_dompar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<byte> der = DER_encode(EC_DOMPAR_ENC_EXPLICIT); - return PEM_Code::encode(der, "ECC DOMAIN PARAMETERS"); + return PEM_Code::encode(der, "EC PARAMETERS"); } } |