26 #ifndef CRYPTO_ASYM_HPP 27 #define CRYPTO_ASYM_HPP 36 #include "../my_config.h" 50 class crypto_asym :
public mem_ui
55 crypto_asym(
const user_interaction & ui) :
mem_ui(ui) { build_context(); has_signatories =
false; };
58 ~crypto_asym() { release_context(); };
61 crypto_asym(
const crypto_asym & ref):
mem_ui(ref) {
throw SRC_BUG; };
64 const crypto_asym & operator = (
const crypto_asym & ref) {
throw SRC_BUG; };
67 void set_signatories(
const std::vector<std::string> & signatories);
75 void encrypt(
const std::vector<std::string> & recipients_email, generic_file & clear, generic_file & ciphered);
82 void decrypt(generic_file & ciphered, generic_file & clear);
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...
user_interaction & get_ui() const
get access to the user_interaction cloned object
adaptation class from gpgme data buffer to libdar generic_file interface
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
the crypto algoritm definition
mem_ui(const user_interaction &dialog)
constructor
contains all the excetion class thrown by libdar
libdar namespace encapsulate all libdar symbols