#include <gnump_engine.h>
Engine using GNU MP
Definition at line 18 of file gnump_engine.h.
Botan::GMP_Engine::GMP_Engine |
( |
| ) |
|
Botan::GMP_Engine::~GMP_Engine |
( |
| ) |
|
Definition at line 65 of file gmp_mem.cpp.
69 if(gmp_alloc_refcnt == 0)
71 mp_set_memory_functions(NULL, NULL, NULL);
Return a new cipher object
- Parameters
-
algo_spec | the algorithm name/specification |
dir | specifies if encryption or decryption is desired |
af | an algorithm factory object |
- Returns
- newly allocated object, or NULL
Reimplemented in Botan::Dynamically_Loaded_Engine, and Botan::Core_Engine.
Definition at line 54 of file engine.cpp.
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 328 of file gnump_pk.cpp.
330 #if defined(BOTAN_HAS_RSA)
331 if(
const RSA_PrivateKey*
s = dynamic_cast<const RSA_PrivateKey*>(&key))
332 return new GMP_RSA_Private_Operation(*
s);
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 317 of file gnump_pk.cpp.
319 #if defined(BOTAN_HAS_RSA)
320 if(
const RSA_PublicKey*
s = dynamic_cast<const RSA_PublicKey*>(&key))
321 return new GMP_RSA_Public_Operation(*
s);
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 274 of file gnump_pk.cpp.
276 #if defined(BOTAN_HAS_DIFFIE_HELLMAN)
277 if(
const DH_PrivateKey* dh = dynamic_cast<const DH_PrivateKey*>(&key))
278 return new GMP_DH_KA_Operation(*dh);
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 285 of file gnump_pk.cpp.
287 #if defined(BOTAN_HAS_RSA)
288 if(
const RSA_PrivateKey*
s = dynamic_cast<const RSA_PrivateKey*>(&key))
289 return new GMP_RSA_Private_Operation(*
s);
292 #if defined(BOTAN_HAS_DSA)
293 if(
const DSA_PrivateKey*
s = dynamic_cast<const DSA_PrivateKey*>(&key))
294 return new GMP_DSA_Signature_Operation(*
s);
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 301 of file gnump_pk.cpp.
303 #if defined(BOTAN_HAS_RSA)
304 if(
const RSA_PublicKey*
s = dynamic_cast<const RSA_PublicKey*>(&key))
305 return new GMP_RSA_Public_Operation(*
s);
308 #if defined(BOTAN_HAS_DSA)
309 if(
const DSA_PublicKey*
s = dynamic_cast<const DSA_PublicKey*>(&key))
310 return new GMP_DSA_Verification_Operation(*
s);
- Parameters
-
n | the modulus |
hints | any use hints |
- Returns
- newly allocated object, or NULL
Reimplemented from Botan::Engine.
Definition at line 47 of file gmp_powm.cpp.
50 return new GMP_Modular_Exponentiator(
n);
std::string Botan::GMP_Engine::provider_name |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files: