blob: 1ca5a35480a8ed375df96efe92b6e13edee3df3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* GMP Engine
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_ENGINE_GMP_H__
#define BOTAN_ENGINE_GMP_H__
#include <botan/engine.h>
namespace Botan {
/*
* GMP Engine
*/
class GMP_Engine : public Engine
{
public:
GMP_Engine();
~GMP_Engine();
std::string provider_name() const { return "gmp"; }
PK_Ops::Key_Agreement*
get_key_agreement_op(const Private_Key& key) const;
PK_Ops::Signature*
get_signature_op(const Private_Key& key) const;
PK_Ops::Verification* get_verify_op(const Public_Key& key) const;
PK_Ops::Encryption* get_encryption_op(const Public_Key& key) const;
PK_Ops::Decryption* get_decryption_op(const Private_Key& key) const;
Modular_Exponentiator* mod_exp(const BigInt&,
Power_Mod::Usage_Hints) const;
};
}
#endif
|