diff options
Diffstat (limited to 'src/libstate')
-rw-r--r-- | src/libstate/pk_engine.cpp | 19 | ||||
-rw-r--r-- | src/libstate/pk_engine.h | 8 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/libstate/pk_engine.cpp b/src/libstate/pk_engine.cpp index d4187adc1..5b7c3b4e1 100644 --- a/src/libstate/pk_engine.cpp +++ b/src/libstate/pk_engine.cpp @@ -34,25 +34,6 @@ IF_Operation* if_op(const BigInt& e, const BigInt& n, const BigInt& d, } #endif -#if defined(BOTAN_HAS_ELGAMAL) -/* -* Acquire an ElGamal op -*/ -ELG_Operation* elg_op(const DL_Group& group, const BigInt& y, const BigInt& x) - { - Algorithm_Factory::Engine_Iterator i(global_state().algorithm_factory()); - - while(const Engine* engine = i.next()) - { - ELG_Operation* op = engine->elg_op(group, y, x); - if(op) - return op; - } - - throw Lookup_Error("Engine_Core::elg_op: Unable to find a working engine"); - } -#endif - /* * Acquire a modular exponentiator */ diff --git a/src/libstate/pk_engine.h b/src/libstate/pk_engine.h index 3bc1a90f1..8f38b2928 100644 --- a/src/libstate/pk_engine.h +++ b/src/libstate/pk_engine.h @@ -15,10 +15,6 @@ #include <botan/if_op.h> #endif -#if defined(BOTAN_HAS_ELGAMAL) - #include <botan/elg_op.h> -#endif - namespace Botan { class Algorithm_Factory; @@ -38,10 +34,6 @@ IF_Operation* if_op(const BigInt&, const BigInt&, const BigInt&, const BigInt&, const BigInt&); #endif -#if defined(BOTAN_HAS_ELGAMAL) -ELG_Operation* elg_op(const DL_Group&, const BigInt&, const BigInt&); -#endif - } } |