diff options
author | lloyd <[email protected]> | 2010-03-04 18:34:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-04 18:34:55 +0000 |
commit | ddd6e2b4aef2558cdc9228b7ecd2348168f16c5a (patch) | |
tree | ea284de3361a44e69943562fcf3c8448a930b7f1 /src/pubkey/dsa/dsa.h | |
parent | 996a01840a7cc920c430a32ffb2a59498055187e (diff) |
Remove DSA load hooks functions
Diffstat (limited to 'src/pubkey/dsa/dsa.h')
-rw-r--r-- | src/pubkey/dsa/dsa.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/pubkey/dsa/dsa.h b/src/pubkey/dsa/dsa.h index c263d4ec8..18c99f545 100644 --- a/src/pubkey/dsa/dsa.h +++ b/src/pubkey/dsa/dsa.h @@ -32,14 +32,14 @@ class BOTAN_DLL DSA_PublicKey : public PK_Verifying_wo_MR_Key, DSA_PublicKey(const AlgorithmIdentifier& alg_id, const MemoryRegion<byte>& key_bits) : DL_Scheme_PublicKey(alg_id, key_bits, DL_Group::ANSI_X9_57) - { X509_load_hook(); } + { + core = DSA_Core(group, y); + } DSA_PublicKey(const DL_Group& group, const BigInt& y); protected: DSA_PublicKey() {} DSA_Core core; - private: - void X509_load_hook(); }; /* @@ -57,18 +57,11 @@ class BOTAN_DLL DSA_PrivateKey : public DSA_PublicKey, DSA_PrivateKey(const AlgorithmIdentifier& alg_id, const MemoryRegion<byte>& key_bits, - RandomNumberGenerator& rng) : - DL_Scheme_PrivateKey(alg_id, key_bits, DL_Group::ANSI_X9_57) - { - PKCS8_load_hook(rng); - } + RandomNumberGenerator& rng); DSA_PrivateKey(RandomNumberGenerator& rng, const DL_Group& group, const BigInt& private_key = 0); - - private: - void PKCS8_load_hook(RandomNumberGenerator& rng, bool = false); }; } |