diff options
Diffstat (limited to 'src/core/function/gpg/GpgFileOpera.h')
-rw-r--r-- | src/core/function/gpg/GpgFileOpera.h | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/src/core/function/gpg/GpgFileOpera.h b/src/core/function/gpg/GpgFileOpera.h index f0880dc1..76d0eeee 100644 --- a/src/core/function/gpg/GpgFileOpera.h +++ b/src/core/function/gpg/GpgFileOpera.h @@ -95,6 +95,19 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera * @brief * * @param in_path + * @param ascii + * @param out_path + * @param cb + */ + void EncryptDerectorySymmetric(const std::filesystem::path& in_path, + bool ascii, + const std::filesystem::path& out_path, + const GpgOperationCallback& cb); + + /** + * @brief + * + * @param in_path * @param out_path * @param result * @return GpgError @@ -142,16 +155,14 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera const GpgOperationCallback& cb); /** - * @brief Encrypt and sign file with public key and private key + * @brief * * @param keys * @param signer_keys * @param in_path + * @param ascii * @param out_path - * @param encr_res - * @param sign_res - * @param channel - * @return GpgError + * @param cb */ void EncryptSignFile(KeyArgsList keys, KeyArgsList signer_keys, const std::filesystem::path& in_path, bool ascii, @@ -161,6 +172,21 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera /** * @brief * + * @param keys + * @param signer_keys + * @param in_path + * @param ascii + * @param out_path + * @param cb + */ + void EncryptSignDirectory(KeyArgsList keys, KeyArgsList signer_keys, + const std::filesystem::path& in_path, bool ascii, + const std::filesystem::path& out_path, + const GpgOperationCallback& cb); + + /** + * @brief + * * @param in_path * @param out_path * @param decr_res @@ -171,6 +197,17 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera const std::filesystem::path& out_path, const GpgOperationCallback& cb); + /** + * @brief + * + * @param in_path + * @param out_path + * @param cb + */ + void DecryptVerifyArchive(const std::filesystem::path& in_path, + const std::filesystem::path& out_path, + const GpgOperationCallback& cb); + private: GpgContext& ctx_ = GpgContext::GetInstance( SingletonFunctionObject::GetChannel()); ///< Corresponding context |