#include <dyn_engine.h>
Dynamically_Loaded_Engine just proxies the requests to the underlying Engine object, and handles load/unload details 
Definition at line 19 of file dyn_engine.h.
◆ Dynamically_Loaded_Engine()
      
        
          | Botan::Dynamically_Loaded_Engine::Dynamically_Loaded_Engine | ( | const std::string & | lib_path | ) |  | 
      
 
- Parameters
- 
  
    | lib_path | full pathname to DLL to load |  
 
Definition at line 22 of file dyn_engine.cpp.
References Botan::Dynamically_Loaded_Library::resolve(), and Botan::to_string().
   26    lib = 
new Dynamically_Loaded_Library(library_path);
    30       module_version_func get_version =
    31          lib->
resolve<module_version_func>(
"module_version");
    33       const u32bit mod_version = get_version();
    35       if(mod_version != 20101003)
    36          throw std::runtime_error(
"Incompatible version in " +
    37                                   library_path + 
" of " +
    40       creator_func creator =
    41          lib->
resolve<creator_func>(
"create_engine");
    46          throw std::runtime_error(
"Creator function in " +
    47                                   library_path + 
" failed");
 T resolve(const std::string &symbol)
std::string to_string(u64bit n, size_t min_len)
 
 
◆ ~Dynamically_Loaded_Engine()
      
        
          | Botan::Dynamically_Loaded_Engine::~Dynamically_Loaded_Engine | ( |  | ) |  | 
      
 
 
◆ find_block_cipher()
- Parameters
- 
  
    | algo_spec | the algorithm name/specification |  | af | an algorithm factory object |  
 
- Returns
- newly allocated object, or NULL 
Reimplemented from Botan::Engine.
Definition at line 31 of file dyn_engine.h.
virtual BlockCipher * find_block_cipher(const SCAN_Name &algo_spec, Algorithm_Factory &af) const
 
 
◆ find_hash()
- Parameters
- 
  
    | algo_spec | the algorithm name/specification |  | af | an algorithm factory object |  
 
- Returns
- newly allocated object, or NULL 
Reimplemented from Botan::Engine.
Definition at line 43 of file dyn_engine.h.
virtual HashFunction * find_hash(const SCAN_Name &algo_spec, Algorithm_Factory &af) const
 
 
◆ find_mac()
- Parameters
- 
  
    | algo_spec | the algorithm name/specification |  | af | an algorithm factory object |  
 
- Returns
- newly allocated object, or NULL 
Reimplemented from Botan::Engine.
Definition at line 49 of file dyn_engine.h.
   52          return engine->
find_mac(algo_spec, af);
 virtual MessageAuthenticationCode * find_mac(const SCAN_Name &algo_spec, Algorithm_Factory &af) const
 
 
◆ find_pbkdf()
- Parameters
- 
  
    | algo_spec | the algorithm name/specification |  | af | an algorithm factory object |  
 
- Returns
- newly allocated object, or NULL 
Reimplemented from Botan::Engine.
Definition at line 55 of file dyn_engine.h.
virtual PBKDF * find_pbkdf(const SCAN_Name &algo_spec, Algorithm_Factory &af) const
 
 
◆ find_stream_cipher()
- Parameters
- 
  
    | algo_spec | the algorithm name/specification |  | af | an algorithm factory object |  
 
- Returns
- newly allocated object, or NULL 
Reimplemented from Botan::Engine.
Definition at line 37 of file dyn_engine.h.
virtual StreamCipher * find_stream_cipher(const SCAN_Name &algo_spec, Algorithm_Factory &af) const
 
 
◆ get_cipher()
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 from Botan::Engine.
Definition at line 67 of file dyn_engine.h.
virtual Keyed_Filter * get_cipher(const std::string &algo_spec, Cipher_Dir dir, Algorithm_Factory &af)
 
 
◆ get_decryption_op()
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 99 of file dyn_engine.h.
virtual PK_Ops::Decryption * get_decryption_op(const Private_Key &key) const
 
 
◆ get_encryption_op()
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 93 of file dyn_engine.h.
virtual PK_Ops::Encryption * get_encryption_op(const Public_Key &key) const
 
 
◆ get_key_agreement_op()
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 75 of file dyn_engine.h.
virtual PK_Ops::Key_Agreement * get_key_agreement_op(const Private_Key &key) const
 
 
◆ get_signature_op()
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 81 of file dyn_engine.h.
virtual PK_Ops::Signature * get_signature_op(const Private_Key &key) const
 
 
◆ get_verify_op()
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 87 of file dyn_engine.h.
virtual PK_Ops::Verification * get_verify_op(const Public_Key &key) const
 
 
◆ mod_exp()
- Parameters
- 
  
    | n | the modulus |  | hints | any use hints |  
 
- Returns
- newly allocated object, or NULL 
Reimplemented from Botan::Engine.
Definition at line 61 of file dyn_engine.h.
   64          return engine->
mod_exp(n, hints);
 virtual Modular_Exponentiator * mod_exp(const BigInt &n, Power_Mod::Usage_Hints hints) const
 
 
◆ provider_name()
  
  | 
        
          | std::string Botan::Dynamically_Loaded_Engine::provider_name | ( |  | ) | const |  | inlinevirtual | 
 
- Returns
- name of this engine 
Implements Botan::Engine.
Definition at line 29 of file dyn_engine.h.
virtual std::string provider_name() const =0
 
 
The documentation for this class was generated from the following files: