diff options
author | lloyd <[email protected]> | 2010-03-05 20:33:32 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-05 20:33:32 +0000 |
commit | e53e16d5b74ab6d79956c54502b25c11dd3be788 (patch) | |
tree | eaf71e7dcfbc200e6644e622ca2f8b6b7518e642 /src/engine/gnump/gnump_engine.h | |
parent | 7b4486c601d2726994c489c503917b9a175b6453 (diff) |
Update GMP engine with new PK operations interface.
Drop support for ElGamal and NR from GMP engine, leaving just DH, DSA,
and RSA
Diffstat (limited to 'src/engine/gnump/gnump_engine.h')
-rw-r--r-- | src/engine/gnump/gnump_engine.h | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/src/engine/gnump/gnump_engine.h b/src/engine/gnump/gnump_engine.h index d0b070441..1ca5a3548 100644 --- a/src/engine/gnump/gnump_engine.h +++ b/src/engine/gnump/gnump_engine.h @@ -23,29 +23,17 @@ class GMP_Engine : public Engine std::string provider_name() const { return "gmp"; } -#if defined(BOTAN_HAS_IF_PUBLIC_KEY_FAMILY) - IF_Operation* if_op(const BigInt&, const BigInt&, const BigInt&, - const BigInt&, const BigInt&, const BigInt&, - const BigInt&, const BigInt&) const; -#endif + PK_Ops::Key_Agreement* + get_key_agreement_op(const Private_Key& key) const; -#if defined(BOTAN_HAS_DSA) - DSA_Operation* dsa_op(const DL_Group&, const BigInt&, - const BigInt&) const; -#endif + PK_Ops::Signature* + get_signature_op(const Private_Key& key) const; -#if defined(BOTAN_HAS_NYBERG_RUEPPEL) - NR_Operation* nr_op(const DL_Group&, const BigInt&, const BigInt&) const; -#endif + PK_Ops::Verification* get_verify_op(const Public_Key& key) const; -#if defined(BOTAN_HAS_ELGAMAL) - ELG_Operation* elg_op(const DL_Group&, const BigInt&, - const BigInt&) const; -#endif + PK_Ops::Encryption* get_encryption_op(const Public_Key& key) const; -#if defined(BOTAN_HAS_DIFFIE_HELLMAN) - DH_Operation* dh_op(const DL_Group&, const BigInt&) const; -#endif + PK_Ops::Decryption* get_decryption_op(const Private_Key& key) const; Modular_Exponentiator* mod_exp(const BigInt&, Power_Mod::Usage_Hints) const; |