diff options
author | lloyd <[email protected]> | 2008-06-20 19:03:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-20 19:03:45 +0000 |
commit | 7dde81851bfb6cef78c3480acc2f1c1dedb1f126 (patch) | |
tree | 06f35288c9c08b9f77468c664dbf8a65aaaf2647 /include | |
parent | 770a9850f1a7c6c65b0316503b99798a6ff910dd (diff) |
Similiar combining transform for the ElGamal, DSA, and NR private key
constructors.
Diffstat (limited to 'include')
-rw-r--r-- | include/dsa.h | 4 | ||||
-rw-r--r-- | include/elgamal.h | 4 | ||||
-rw-r--r-- | include/nr.h | 5 |
3 files changed, 7 insertions, 6 deletions
diff --git a/include/dsa.h b/include/dsa.h index eb14dbef9..429d55b7c 100644 --- a/include/dsa.h +++ b/include/dsa.h @@ -49,8 +49,8 @@ class BOTAN_DLL DSA_PrivateKey : public DSA_PublicKey, bool check_key(RandomNumberGenerator& rng, bool) const; DSA_PrivateKey() {} - DSA_PrivateKey(const DL_Group&, RandomNumberGenerator& rng); - DSA_PrivateKey(const DL_Group&, const BigInt&, const BigInt& = 0); + DSA_PrivateKey(RandomNumberGenerator&, const DL_Group&, + const BigInt& = 0); private: void PKCS8_load_hook(RandomNumberGenerator& rng, bool = false); }; diff --git a/include/elgamal.h b/include/elgamal.h index 7cce0a73e..c85f6986e 100644 --- a/include/elgamal.h +++ b/include/elgamal.h @@ -46,8 +46,8 @@ class BOTAN_DLL ElGamal_PrivateKey : public ElGamal_PublicKey, bool check_key(RandomNumberGenerator& rng, bool) const; ElGamal_PrivateKey() {} - ElGamal_PrivateKey(const DL_Group&, RandomNumberGenerator&); - ElGamal_PrivateKey(const DL_Group&, const BigInt&, const BigInt& = 0); + ElGamal_PrivateKey(RandomNumberGenerator&, const DL_Group&, + const BigInt& = 0); private: void PKCS8_load_hook(RandomNumberGenerator&, bool = false); }; diff --git a/include/nr.h b/include/nr.h index 51b9a95d1..2dcbccd20 100644 --- a/include/nr.h +++ b/include/nr.h @@ -49,8 +49,9 @@ class BOTAN_DLL NR_PrivateKey : public NR_PublicKey, bool check_key(RandomNumberGenerator& rng, bool) const; NR_PrivateKey() {} - NR_PrivateKey(const DL_Group&, RandomNumberGenerator& rng); - NR_PrivateKey(const DL_Group&, const BigInt&, const BigInt& = 0); + + NR_PrivateKey(RandomNumberGenerator&, const DL_Group&, + const BigInt& = 0); private: void PKCS8_load_hook(RandomNumberGenerator&, bool = false); }; |