diff options
author | lloyd <[email protected]> | 2010-03-01 22:53:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-01 22:53:42 +0000 |
commit | b789c87b7c96dbdb00839996c9603a3f0921b25b (patch) | |
tree | 63b10b4ea832d624908006e936e3fc5ba8311625 /src/pubkey/gost_3410/gost_3410.cpp | |
parent | 6646a0577a337fa054aea1153dc39af419a6b1b4 (diff) |
Clean up EC_Domain_Params
Diffstat (limited to 'src/pubkey/gost_3410/gost_3410.cpp')
-rw-r--r-- | src/pubkey/gost_3410/gost_3410.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pubkey/gost_3410/gost_3410.cpp b/src/pubkey/gost_3410/gost_3410.cpp index 24e078dca..8f6b56324 100644 --- a/src/pubkey/gost_3410/gost_3410.cpp +++ b/src/pubkey/gost_3410/gost_3410.cpp @@ -61,10 +61,8 @@ X509_Encoder* GOST_3410_PublicKey::x509_encoder() const { key->affirm_init(); - SecureVector<byte> params = - encode_der_ec_dompar(key->domain_parameters(), key->m_param_enc); - - return AlgorithmIdentifier(key->get_oid(), params); + return AlgorithmIdentifier(key->get_oid(), + key->domain_parameters().DER_encode(key->m_param_enc)); } MemoryVector<byte> key_bits() const @@ -242,7 +240,7 @@ GOST_3410_PublicKey::GOST_3410_PublicKey(const EC_Domain_Params& dom_par, { mp_dom_pars = std::auto_ptr<EC_Domain_Params>(new EC_Domain_Params(dom_par)); mp_public_point = std::auto_ptr<PointGFp>(new PointGFp(public_point)); - m_param_enc = ENC_EXPLICIT; + m_param_enc = EC_DOMPAR_ENC_EXPLICIT; } void GOST_3410_PublicKey::X509_load_hook() |