From fe9aa5acece6c004f2c1c1aa4b23d7c44207672f Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 4 Mar 2010 03:49:35 +0000 Subject: Add similar decoding constructors to the private keys --- src/pubkey/dl_algo/dl_algo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/pubkey/dl_algo/dl_algo.h') diff --git a/src/pubkey/dl_algo/dl_algo.h b/src/pubkey/dl_algo/dl_algo.h index 66e6eafd0..59690a33a 100644 --- a/src/pubkey/dl_algo/dl_algo.h +++ b/src/pubkey/dl_algo/dl_algo.h @@ -91,6 +91,10 @@ class BOTAN_DLL DL_Scheme_PrivateKey : public virtual DL_Scheme_PublicKey, MemoryVector pkcs8_private_key() const; + DL_Scheme_PrivateKey(const AlgorithmIdentifier& alg_id, + const MemoryRegion& key_bits, + DL_Group::Format group_format); + /** * Get an PKCS#8 decoder for this key. * @param rng the rng to use @@ -99,6 +103,7 @@ class BOTAN_DLL DL_Scheme_PrivateKey : public virtual DL_Scheme_PublicKey, */ PKCS8_Decoder* pkcs8_decoder(RandomNumberGenerator& rng); protected: + DL_Scheme_PrivateKey() {} BigInt x; private: virtual void PKCS8_load_hook(RandomNumberGenerator&, bool = false) {} -- cgit v1.2.3