aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/dl_algo/dl_algo.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-04 03:51:55 +0000
committerlloyd <[email protected]>2010-03-04 03:51:55 +0000
commite998558e1fa903b32155b694107082fff25f9c0e (patch)
treeed36916dc4aa216bd996d2ec308159741b2b0bf8 /src/pubkey/dl_algo/dl_algo.cpp
parentfe9aa5acece6c004f2c1c1aa4b23d7c44207672f (diff)
Kill pkcs8_decoder
Diffstat (limited to 'src/pubkey/dl_algo/dl_algo.cpp')
-rw-r--r--src/pubkey/dl_algo/dl_algo.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/pubkey/dl_algo/dl_algo.cpp b/src/pubkey/dl_algo/dl_algo.cpp
index 185e62cef..8e326ef6a 100644
--- a/src/pubkey/dl_algo/dl_algo.cpp
+++ b/src/pubkey/dl_algo/dl_algo.cpp
@@ -49,36 +49,6 @@ DL_Scheme_PrivateKey::DL_Scheme_PrivateKey(const AlgorithmIdentifier& alg_id,
}
/*
-* Return the PKCS #8 private key decoder
-*/
-PKCS8_Decoder* DL_Scheme_PrivateKey::pkcs8_decoder(RandomNumberGenerator& rng)
- {
- class DL_Scheme_Decoder : public PKCS8_Decoder
- {
- public:
- void alg_id(const AlgorithmIdentifier& alg_id)
- {
- DataSource_Memory source(alg_id.parameters);
- key->group.BER_decode(source, key->group_format());
- }
-
- void key_bits(const MemoryRegion<byte>& bits)
- {
- BER_Decoder(bits).decode(key->x);
- key->PKCS8_load_hook(rng);
- }
-
- DL_Scheme_Decoder(DL_Scheme_PrivateKey* k, RandomNumberGenerator& r) :
- key(k), rng(r) {}
- private:
- DL_Scheme_PrivateKey* key;
- RandomNumberGenerator& rng;
- };
-
- return new DL_Scheme_Decoder(this, rng);
- }
-
-/*
* Check Public DL Parameters
*/
bool DL_Scheme_PublicKey::check_key(RandomNumberGenerator& rng,