diff options
author | lloyd <[email protected]> | 2010-03-04 03:49:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-04 03:49:35 +0000 |
commit | fe9aa5acece6c004f2c1c1aa4b23d7c44207672f (patch) | |
tree | 56bf2fc8378d965138e29074c23f645ed5d1a947 /src/pubkey/rw/rw.h | |
parent | de89566f633d5ed807ca57a59cc1071f79fdded3 (diff) |
Add similar decoding constructors to the private keys
Diffstat (limited to 'src/pubkey/rw/rw.h')
-rw-r--r-- | src/pubkey/rw/rw.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pubkey/rw/rw.h b/src/pubkey/rw/rw.h index ecc29ed6c..dff9a17dc 100644 --- a/src/pubkey/rw/rw.h +++ b/src/pubkey/rw/rw.h @@ -46,9 +46,15 @@ class BOTAN_DLL RW_PrivateKey : public RW_PublicKey, bool check_key(RandomNumberGenerator& rng, bool) const; - RW_PrivateKey() {} + RW_PrivateKey(const AlgorithmIdentifier& alg_id, + const MemoryRegion<byte>& key_bits, + RandomNumberGenerator& rng) : + IF_Scheme_PrivateKey(alg_id, key_bits) + { + PKCS8_load_hook(rng); + } - RW_PrivateKey(RandomNumberGenerator&, + RW_PrivateKey(RandomNumberGenerator& rng, const BigInt&, const BigInt&, const BigInt&, const BigInt& = 0, const BigInt& = 0); |