diff options
author | lloyd <[email protected]> | 2010-03-05 17:46:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-05 17:46:37 +0000 |
commit | c80b4df255c2dc1e4a2e100e62469e3c0f1d38a8 (patch) | |
tree | 737ac5a23f4b2df9d4a8906a0407d33043a15fde /src/libstate/pk_engine.cpp | |
parent | be9d7d1031bba2cd4f415d114389a1f50c61d44b (diff) |
Inline Engine_Core::mod_exp into singler caller, and delete
Diffstat (limited to 'src/libstate/pk_engine.cpp')
-rw-r--r-- | src/libstate/pk_engine.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/libstate/pk_engine.cpp b/src/libstate/pk_engine.cpp deleted file mode 100644 index 2c9ee4bfd..000000000 --- a/src/libstate/pk_engine.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* -* PK Engine Lookup -* (C) 1999-2007 Jack Lloyd -* -* Distributed under the terms of the Botan license -*/ - -#include <botan/internal/pk_engine.h> -#include <botan/libstate.h> -#include <botan/engine.h> - -namespace Botan { - -namespace Engine_Core { - -/* -* Acquire a modular exponentiator -*/ -Modular_Exponentiator* mod_exp(const BigInt& n, Power_Mod::Usage_Hints hints) - { - Algorithm_Factory::Engine_Iterator i(global_state().algorithm_factory()); - - while(const Engine* engine = i.next()) - { - Modular_Exponentiator* op = engine->mod_exp(n, hints); - - if(op) - return op; - } - - throw Lookup_Error("Engine_Core::mod_exp: Unable to find a working engine"); - } - -} - -} |