aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/engine.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-05 17:21:40 +0000
committerlloyd <[email protected]>2010-03-05 17:21:40 +0000
commitdf8c46ffb5554d8804287b340e06f79fbafe8d1d (patch)
treed0f047eee908f3b85ce2d5e6b9b19a9e55ea3757 /src/engine/engine.h
parent8df87a70435cae25e30f7045f7799537857e13d4 (diff)
Add ops for ElGamal encryption and decryption.
Note: blinding is not currently being used for RSA, RW, DH or ElGamal, which used to have them. This should be added back before release.
Diffstat (limited to 'src/engine/engine.h')
-rw-r--r--src/engine/engine.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/engine/engine.h b/src/engine/engine.h
index c45718662..a3f227412 100644
--- a/src/engine/engine.h
+++ b/src/engine/engine.h
@@ -25,10 +25,6 @@
#include <botan/if_op.h>
#endif
-#if defined(BOTAN_HAS_ELGAMAL)
- #include <botan/elg_op.h>
-#endif
-
namespace Botan {
class Algorithm_Factory;
@@ -76,8 +72,7 @@ class BOTAN_DLL Engine
return 0;
}
- virtual PK_Ops::Signature*
- get_signature_op(const Private_Key&) const
+ virtual PK_Ops::Signature* get_signature_op(const Private_Key&) const
{
return 0;
}
@@ -87,18 +82,22 @@ class BOTAN_DLL Engine
return 0;
}
+ virtual PK_Ops::Encryption* get_encryption_op(const Public_Key&) const
+ {
+ return 0;
+ }
+
+ virtual PK_Ops::Decryption* get_decryption_op(const Private_Key&) const
+ {
+ return 0;
+ }
+
#if defined(BOTAN_HAS_IF_PUBLIC_KEY_FAMILY)
virtual IF_Operation* if_op(const BigInt&, const BigInt&, const BigInt&,
const BigInt&, const BigInt&, const BigInt&,
const BigInt&, const BigInt&) const
{ return 0; }
#endif
-
-#if defined(BOTAN_HAS_ELGAMAL)
- virtual ELG_Operation* elg_op(const DL_Group&, const BigInt&,
- const BigInt&) const
- { return 0; }
-#endif
};
}