aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/if_algo
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-04 02:18:00 +0000
committerlloyd <[email protected]>2010-03-04 02:18:00 +0000
commitaf204bf9828c20e485f9c9bde98160bd3506e81a (patch)
treed6cf6d48dc75899040989ca689a4a2877d9bb7e0 /src/pubkey/if_algo
parentbc66f1dc8ace6b81c486392422d3302afd674f37 (diff)
Kill pkcs8_encoder
Diffstat (limited to 'src/pubkey/if_algo')
-rw-r--r--src/pubkey/if_algo/if_algo.cpp26
-rw-r--r--src/pubkey/if_algo/if_algo.h1
2 files changed, 0 insertions, 27 deletions
diff --git a/src/pubkey/if_algo/if_algo.cpp b/src/pubkey/if_algo/if_algo.cpp
index 1a1ade28e..201d7aa53 100644
--- a/src/pubkey/if_algo/if_algo.cpp
+++ b/src/pubkey/if_algo/if_algo.cpp
@@ -76,32 +76,6 @@ MemoryVector<byte> IF_Scheme_PrivateKey::pkcs8_private_key() const
}
/*
-* Return the PKCS #8 public key encoder
-*/
-PKCS8_Encoder* IF_Scheme_PrivateKey::pkcs8_encoder() const
- {
- class IF_Scheme_Encoder : public PKCS8_Encoder
- {
- public:
- AlgorithmIdentifier alg_id() const
- {
- return key->algorithm_identifier();
- }
-
- MemoryVector<byte> key_bits() const
- {
- return key->pkcs8_private_key();
- }
-
- IF_Scheme_Encoder(const IF_Scheme_PrivateKey* k) : key(k) {}
- private:
- const IF_Scheme_PrivateKey* key;
- };
-
- return new IF_Scheme_Encoder(this);
- }
-
-/*
* Return the PKCS #8 public key decoder
*/
PKCS8_Decoder* IF_Scheme_PrivateKey::pkcs8_decoder(RandomNumberGenerator& rng)
diff --git a/src/pubkey/if_algo/if_algo.h b/src/pubkey/if_algo/if_algo.h
index 254afc083..c58b693be 100644
--- a/src/pubkey/if_algo/if_algo.h
+++ b/src/pubkey/if_algo/if_algo.h
@@ -78,7 +78,6 @@ class BOTAN_DLL IF_Scheme_PrivateKey : public virtual IF_Scheme_PublicKey,
MemoryVector<byte> pkcs8_private_key() const;
- PKCS8_Encoder* pkcs8_encoder() const;
PKCS8_Decoder* pkcs8_decoder(RandomNumberGenerator&);
protected:
virtual void PKCS8_load_hook(RandomNumberGenerator&, bool = false);