Botan: src/engine/gnump/gnump_engine.h Source File

Botan 1.10.12

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

gnump_engine.h
Go to the documentation of this file.
1 /*
2 * GMP Engine
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_ENGINE_GMP_H__
9 #define BOTAN_ENGINE_GMP_H__
10
11 #include <botan/engine.h>
12
13 namespace Botan {
14
15 /**
16 * Engine using GNU MP
17 */
18 class GMP_Engine : public Engine
19 {
20 public:
21 GMP_Engine();
22 ~GMP_Engine();
23
24 std::string provider_name() const { return "gmp"; }
25
26 PK_Ops::Key_Agreement*
27 get_key_agreement_op(const Private_Key& key) const;
28
29 PK_Ops::Signature*
30 get_signature_op(const Private_Key& key) const;
31
32 PK_Ops::Verification* get_verify_op(const Public_Key& key) const;
33
34 PK_Ops::Encryption* get_encryption_op(const Public_Key& key) const;
35
36 PK_Ops::Decryption* get_decryption_op(const Private_Key& key) const;
37
38 Modular_Exponentiator* mod_exp(const BigInt&,
39 Power_Mod::Usage_Hints) const;
40 };
41
42 }
43
44 #endif
Botan::BigInt
Definition: bigint.h:22
Botan::GMP_Engine::get_encryption_op
PK_Ops::Encryption * get_encryption_op(const Public_Key &key) const
Definition: gnump_pk.cpp:317
Botan::Private_Key
Definition: pk_keys.h:86
Botan::GMP_Engine::GMP_Engine
GMP_Engine()
Definition: gmp_mem.cpp:54
Botan::PK_Ops::Signature
Definition: pk_ops.h:49
Botan::Engine
Definition: engine.h:32
Botan
Definition: algo_base.h:14
Botan::GMP_Engine::get_verify_op
PK_Ops::Verification * get_verify_op(const Public_Key &key) const
Definition: gnump_pk.cpp:301
Botan::GMP_Engine::get_signature_op
PK_Ops::Signature * get_signature_op(const Private_Key &key) const
Definition: gnump_pk.cpp:285
Botan::PK_Ops::Key_Agreement
Definition: pk_ops.h:145
Botan::Public_Key
Definition: pk_keys.h:21
Botan::GMP_Engine::get_decryption_op
PK_Ops::Decryption * get_decryption_op(const Private_Key &key) const
Definition: gnump_pk.cpp:328
Botan::GMP_Engine::~GMP_Engine
~GMP_Engine()
Definition: gmp_mem.cpp:65
Botan::Power_Mod::Usage_Hints
Usage_Hints
Definition: pow_mod.h:35
Botan::GMP_Engine
Definition: gnump_engine.h:18
Botan::GMP_Engine::mod_exp
Modular_Exponentiator * mod_exp(const BigInt &, Power_Mod::Usage_Hints) const
Definition: gmp_powm.cpp:47
Botan::PK_Ops::Decryption
Definition: pk_ops.h:35
Botan::PK_Ops::Encryption
Definition: pk_ops.h:21
Botan::GMP_Engine::provider_name
std::string provider_name() const
Definition: gnump_engine.h:24
Botan::GMP_Engine::get_key_agreement_op
PK_Ops::Key_Agreement * get_key_agreement_op(const Private_Key &key) const
Definition: gnump_pk.cpp:274
Botan::PK_Ops::Verification
Definition: pk_ops.h:85
Botan::Modular_Exponentiator
Definition: pow_mod.h:18