diff options
author | lloyd <[email protected]> | 2010-03-05 16:25:43 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-05 16:25:43 +0000 |
commit | c52cfb67263a9bb227c4b6fb0a0e37ab388f933a (patch) | |
tree | fdd87d05cae6e30e84c60d518ae1f99f80bbabff /src/libstate | |
parent | df56028cad58fad04b9866326cb62700af8f2fbe (diff) |
Remove NR and DSA specific hooks
Diffstat (limited to 'src/libstate')
-rw-r--r-- | src/libstate/pk_engine.cpp | 38 | ||||
-rw-r--r-- | src/libstate/pk_engine.h | 16 |
2 files changed, 0 insertions, 54 deletions
diff --git a/src/libstate/pk_engine.cpp b/src/libstate/pk_engine.cpp index 51aaa073e..d4187adc1 100644 --- a/src/libstate/pk_engine.cpp +++ b/src/libstate/pk_engine.cpp @@ -34,44 +34,6 @@ IF_Operation* if_op(const BigInt& e, const BigInt& n, const BigInt& d, } #endif -#if defined(BOTAN_HAS_DSA) -/* -* Acquire a DSA op -*/ -DSA_Operation* dsa_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()) - { - DSA_Operation* op = engine->dsa_op(group, y, x); - if(op) - return op; - } - - throw Lookup_Error("Engine_Core::dsa_op: Unable to find a working engine"); - } -#endif - -#if defined(BOTAN_HAS_NYBERG_RUEPPEL) -/* -* Acquire a NR op -*/ -NR_Operation* nr_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()) - { - NR_Operation* op = engine->nr_op(group, y, x); - if(op) - return op; - } - - throw Lookup_Error("Engine_Core::nr_op: Unable to find a working engine"); - } -#endif - #if defined(BOTAN_HAS_ELGAMAL) /* * Acquire an ElGamal op diff --git a/src/libstate/pk_engine.h b/src/libstate/pk_engine.h index e6399058e..3bc1a90f1 100644 --- a/src/libstate/pk_engine.h +++ b/src/libstate/pk_engine.h @@ -15,14 +15,6 @@ #include <botan/if_op.h> #endif -#if defined(BOTAN_HAS_DSA) - #include <botan/dsa_op.h> -#endif - -#if defined(BOTAN_HAS_NYBERG_RUEPPEL) - #include <botan/nr_op.h> -#endif - #if defined(BOTAN_HAS_ELGAMAL) #include <botan/elg_op.h> #endif @@ -46,14 +38,6 @@ IF_Operation* if_op(const BigInt&, const BigInt&, const BigInt&, const BigInt&, const BigInt&); #endif -#if defined(BOTAN_HAS_DSA) -DSA_Operation* dsa_op(const DL_Group&, const BigInt&, const BigInt&); -#endif - -#if defined(BOTAN_HAS_NYBERG_RUEPPEL) -NR_Operation* nr_op(const DL_Group&, const BigInt&, const BigInt&); -#endif - #if defined(BOTAN_HAS_ELGAMAL) ELG_Operation* elg_op(const DL_Group&, const BigInt&, const BigInt&); #endif |