aboutsummaryrefslogtreecommitdiffstats
path: root/include/elgamal.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-25 21:57:32 +0000
committerlloyd <[email protected]>2008-05-25 21:57:32 +0000
commit4e3ed1be76906bcd3440dd3fbf78569a0d684dfc (patch)
treea9b560c141ca03c74ba776a7d26ad9838a30b5f2 /include/elgamal.h
parent729cbc8ea0a181b1fb1425980e30649afd9195cc (diff)
Reindent
Diffstat (limited to 'include/elgamal.h')
-rw-r--r--include/elgamal.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/elgamal.h b/include/elgamal.h
index bf9199fac..90fd8c77a 100644
--- a/include/elgamal.h
+++ b/include/elgamal.h
@@ -15,16 +15,15 @@ namespace Botan {
* ElGamal Public Key *
*************************************************/
class BOTAN_DLL ElGamal_PublicKey : public PK_Encrypting_Key,
- public virtual DL_Scheme_PublicKey
+ public virtual DL_Scheme_PublicKey
{
public:
std::string algo_name() const { return "ElGamal"; }
+ DL_Group::Format group_format() const { return DL_Group::ANSI_X9_42; }
SecureVector<byte> encrypt(const byte[], u32bit) const;
u32bit max_input_bits() const;
- DL_Group::Format group_format() const { return DL_Group::ANSI_X9_42; }
-
ElGamal_PublicKey() {}
ElGamal_PublicKey(const DL_Group&, const BigInt&);
protected:
@@ -37,8 +36,8 @@ class BOTAN_DLL ElGamal_PublicKey : public PK_Encrypting_Key,
* ElGamal Private Key *
*************************************************/
class BOTAN_DLL ElGamal_PrivateKey : public ElGamal_PublicKey,
- public PK_Decrypting_Key,
- public virtual DL_Scheme_PrivateKey
+ public PK_Decrypting_Key,
+ public virtual DL_Scheme_PrivateKey
{
public:
SecureVector<byte> decrypt(const byte[], u32bit) const;