GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFileOpera.h
1
29#ifndef GPGFRONTEND_GPGFILEOPERA_H
30#define GPGFRONTEND_GPGFILEOPERA_H
31
32#include "core/GpgConstants.h"
33#include "core/GpgContext.h"
34#include "core/GpgModel.h"
35
36namespace GpgFrontend {
37
43class GPGFRONTEND_CORE_EXPORT GpgFileOpera
44 : public SingletonFunctionObject<GpgFileOpera> {
45 public:
46
47 explicit GpgFileOpera(
49
60 static unsigned int EncryptFile(KeyListPtr keys, const std::string& in_path,
61 const std::string& out_path,
62 GpgEncrResult& result,
63 int _channel = GPGFRONTEND_DEFAULT_CHANNEL);
64
74 static unsigned int EncryptFileSymmetric(
75 const std::string& in_path, const std::string& out_path,
76 GpgEncrResult& result, int _channel = GPGFRONTEND_DEFAULT_CHANNEL);
77
86 static GpgError DecryptFile(const std::string& in_path,
87 const std::string& out_path,
88 GpgDecrResult& result);
89
100 static GpgError SignFile(KeyListPtr keys, const std::string& in_path,
101 const std::string& out_path, GpgSignResult& result,
102 int _channel = GPGFRONTEND_DEFAULT_CHANNEL);
103
113 static GpgError VerifyFile(const std::string& data_path,
114 const std::string& sign_path,
115 GpgVerifyResult& result,
116 int _channel = GPGFRONTEND_DEFAULT_CHANNEL);
117
130 static GpgError EncryptSignFile(KeyListPtr keys, KeyListPtr signer_keys,
131 const std::string& in_path,
132 const std::string& out_path,
133 GpgEncrResult& encr_res,
134 GpgSignResult& sign_res,
135 int _channel = GPGFRONTEND_DEFAULT_CHANNEL);
136
146 static GpgError DecryptVerifyFile(const std::string& in_path,
147 const std::string& out_path,
148 GpgDecrResult& decr_res,
149 GpgVerifyResult& verify_res);
150};
151
152} // namespace GpgFrontend
153
154#endif // GPGFRONTEND_GPGFILEOPERA_H
Definition: GpgFileOpera.h:44
Definition: GpgFunctionObject.h:49
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:127
Definition: CoreCommonUtil.cpp:29