diff options
author | lloyd <[email protected]> | 2008-10-08 02:32:56 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-08 02:32:56 +0000 |
commit | 89fed41be3c9a77aff495a636d40bf67ac503fa9 (patch) | |
tree | 7ce90033aead61eec1f6b70eb79c47cdc2a43fe4 /src/core | |
parent | dbec5c3bbbd53f1a208707300752e59213cf53c6 (diff) |
Split ecdsa module into ecc_key, ecdsa, eckaeg
Add actual implementations (from InSiTo) for ECDSA_Operation and
ECKAEG_Operation.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/libstate/eng_def.h | 12 | ||||
-rw-r--r-- | src/core/libstate/engine.h | 9 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/core/libstate/eng_def.h b/src/core/libstate/eng_def.h index 66cb774d2..36ef14a69 100644 --- a/src/core/libstate/eng_def.h +++ b/src/core/libstate/eng_def.h @@ -40,6 +40,18 @@ class BOTAN_DLL Default_Engine : public Engine DH_Operation* dh_op(const DL_Group&, const BigInt&) const; #endif +#if defined(BOTAN_HAS_ECDSA) + virtual ECDSA_Operation* ecdsa_op(const EC_Domain_Params&, + const BigInt&, + const PointGFp&) const; +#endif + +#if defined(BOTAN_HAS_ECKAEG) + virtual ECKAEG_Operation* eckaeg_op(const EC_Domain_Params&, + const BigInt&, + const PointGFp&) const; +#endif + Modular_Exponentiator* mod_exp(const BigInt&, Power_Mod::Usage_Hints) const; diff --git a/src/core/libstate/engine.h b/src/core/libstate/engine.h index 35d43afc3..d9b70011c 100644 --- a/src/core/libstate/engine.h +++ b/src/core/libstate/engine.h @@ -35,7 +35,12 @@ #endif #if defined(BOTAN_HAS_ECDSA) - #include <botan/ecc_op.h> + #include <botan/ecdsa_op.h> + #include <botan/ec_dompar.h> +#endif + +#if defined(BOTAN_HAS_ECKAEG) + #include <botan/eckaeg_op.h> #include <botan/ec_dompar.h> #endif @@ -91,7 +96,9 @@ class BOTAN_DLL Engine const BigInt&, const PointGFp&) const { return 0; } +#endif +#if defined(BOTAN_HAS_ECKAEG) virtual ECKAEG_Operation* eckaeg_op(const EC_Domain_Params&, const BigInt&, const PointGFp&) const |