aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/if_algo/if_op.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-01 15:17:52 +0000
committerlloyd <[email protected]>2008-10-01 15:17:52 +0000
commit92ddf6f0f8f0ef6f5584889481e4a098e280ee40 (patch)
tree4178ad93250da66d0eb18f9dfcce221bbb57bcd7 /src/pubkey/if_algo/if_op.h
parent1034cf44b4ee0948312c11a1b079b8b04c5828e2 (diff)
Move last pieces of algorithm-specific code from general 'pubkey' module
into algorithm-specific directories. (Dependencies still remain on these in core/libstate, though).
Diffstat (limited to 'src/pubkey/if_algo/if_op.h')
-rw-r--r--src/pubkey/if_algo/if_op.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/pubkey/if_algo/if_op.h b/src/pubkey/if_algo/if_op.h
new file mode 100644
index 000000000..be9a4581c
--- /dev/null
+++ b/src/pubkey/if_algo/if_op.h
@@ -0,0 +1,27 @@
+/*************************************************
+* IF Operations Header File *
+* (C) 1999-2008 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_IF_OP_H__
+#define BOTAN_IF_OP_H__
+
+#include <botan/bigint.h>
+
+namespace Botan {
+
+/*************************************************
+* IF Operation *
+*************************************************/
+class BOTAN_DLL IF_Operation
+ {
+ public:
+ virtual BigInt public_op(const BigInt&) const = 0;
+ virtual BigInt private_op(const BigInt&) const = 0;
+ virtual IF_Operation* clone() const = 0;
+ virtual ~IF_Operation() {}
+ };
+
+}
+
+#endif