26 #ifndef CRYPTO_ASYM_HPP
27 #define CRYPTO_ASYM_HPP
36 #include "../my_config.h"
86 const std::list<signator> &
verify()
const {
return signing_result; };
93 std::list<signator> signing_result;
97 void release_context() { gpgme_release(context); };
98 void build_key_list(
const std::vector<std::string> & recipients_email,
99 gpgme_key_t * & ciphering_keys,
101 void release_key_list(gpgme_key_t * & ciphering_keys);
102 void fill_signing_result();
104 void release_context() {};
107 void build_context();
class mem_ui definition. This class is to be used as parent class to handle user_interaction object m...
const std::list< signator > & verify() const
adaptation class from gpgme data buffer to libdar generic_file interface
~crypto_asym()
the destructor
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
This is a pure virtual class that is used by libdar when interaction with the user is required...
the crypto algoritm definition
void set_signatories(const std::vector< std::string > &signatories)
defines the list of email which associated key will be used for signing
user_interaction & get_ui() const
exposing to public visibility the protected method of mem_ui
void encrypt(const std::vector< std::string > &recipients_email, generic_file &clear, generic_file &ciphered)
contains all the excetion class thrown by libdar
void decrypt(generic_file &ciphered, generic_file &clear)
crypto_asym(const user_interaction &ui)
general use constructor
this is the interface class from which all other data transfer classes inherit
class mem_ui to keep a copy of a user_interaction object
crypto_asym(const crypto_asym &ref)
disabling copy constructor
user_interaction & get_ui() const
get access to the user_interaction cloned object
const crypto_asym & operator=(const crypto_asym &ref)
disabling object assignment