aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-10 18:09:31 +0000
committerlloyd <[email protected]>2008-11-10 18:09:31 +0000
commita4b0a95b2b0b61a33a11e3ee5c120e7bb9ced8ac (patch)
tree0ff6330f56f9b867805fad3d4010b888968d12e6 /src/libstate/engine
parent3d83359991fa41126689b29f2a40e1bf7d5ba52b (diff)
Add a class Algorithm_Factory which encapsulates the Engine classes (and
which will eventually encapsulate the lookup logic as well)
Diffstat (limited to 'src/libstate/engine')
-rw-r--r--src/libstate/engine/engine.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstate/engine/engine.cpp b/src/libstate/engine/engine.cpp
index 95111014e..c55ff2a78 100644
--- a/src/libstate/engine/engine.cpp
+++ b/src/libstate/engine/engine.cpp
@@ -163,7 +163,7 @@ IF_Operation* if_op(const BigInt& e, const BigInt& n, const BigInt& d,
const BigInt& p, const BigInt& q, const BigInt& d1,
const BigInt& d2, const BigInt& c)
{
- Library_State::Engine_Iterator i(global_state());
+ Algorithm_Factory::Engine_Iterator i(global_state().algo_factory());
while(const Engine* engine = i.next())
{
@@ -182,7 +182,7 @@ IF_Operation* if_op(const BigInt& e, const BigInt& n, const BigInt& d,
*************************************************/
DSA_Operation* dsa_op(const DL_Group& group, const BigInt& y, const BigInt& x)
{
- Library_State::Engine_Iterator i(global_state());
+ Algorithm_Factory::Engine_Iterator i(global_state().algo_factory());
while(const Engine* engine = i.next())
{
@@ -201,7 +201,7 @@ DSA_Operation* dsa_op(const DL_Group& group, const BigInt& y, const BigInt& x)
*************************************************/
NR_Operation* nr_op(const DL_Group& group, const BigInt& y, const BigInt& x)
{
- Library_State::Engine_Iterator i(global_state());
+ Algorithm_Factory::Engine_Iterator i(global_state().algo_factory());
while(const Engine* engine = i.next())
{
@@ -220,7 +220,7 @@ NR_Operation* nr_op(const DL_Group& group, const BigInt& y, const BigInt& x)
*************************************************/
ELG_Operation* elg_op(const DL_Group& group, const BigInt& y, const BigInt& x)
{
- Library_State::Engine_Iterator i(global_state());
+ Algorithm_Factory::Engine_Iterator i(global_state().algo_factory());
while(const Engine* engine = i.next())
{
@@ -239,7 +239,7 @@ ELG_Operation* elg_op(const DL_Group& group, const BigInt& y, const BigInt& x)
*************************************************/
DH_Operation* dh_op(const DL_Group& group, const BigInt& x)
{
- Library_State::Engine_Iterator i(global_state());
+ Algorithm_Factory::Engine_Iterator i(global_state().algo_factory());
while(const Engine* engine = i.next())
{
@@ -260,7 +260,7 @@ ECDSA_Operation* ecdsa_op(const EC_Domain_Params& dom_pars,
const BigInt& priv_key,
const PointGFp& pub_key)
{
- Library_State::Engine_Iterator i(global_state());
+ Algorithm_Factory::Engine_Iterator i(global_state().algo_factory());
while(const Engine* engine = i.next())
{
@@ -281,7 +281,7 @@ ECKAEG_Operation* eckaeg_op(const EC_Domain_Params& dom_pars,
const BigInt& priv_key,
const PointGFp& pub_key)
{
- Library_State::Engine_Iterator i(global_state());
+ Algorithm_Factory::Engine_Iterator i(global_state().algo_factory());
while(const Engine* engine = i.next())
{
@@ -299,7 +299,7 @@ ECKAEG_Operation* eckaeg_op(const EC_Domain_Params& dom_pars,
*************************************************/
Modular_Exponentiator* mod_exp(const BigInt& n, Power_Mod::Usage_Hints hints)
{
- Library_State::Engine_Iterator i(global_state());
+ Algorithm_Factory::Engine_Iterator i(global_state().algo_factory());
while(const Engine* engine = i.next())
{