62 lines
4.7 KiB
TeX
62 lines
4.7 KiB
TeX
|
\hypertarget{GpgFileOpera_8h_source}{}\doxysection{Gpg\+File\+Opera.\+h}
|
||
|
\label{GpgFileOpera_8h_source}\index{src/core/function/gpg/GpgFileOpera.h@{src/core/function/gpg/GpgFileOpera.h}}
|
||
|
|
||
|
\begin{DoxyCode}{0}
|
||
|
\DoxyCodeLine{1 }
|
||
|
\DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef GPGFRONTEND\_GPGFILEOPERA\_H}}
|
||
|
\DoxyCodeLine{30 \textcolor{preprocessor}{\#define GPGFRONTEND\_GPGFILEOPERA\_H}}
|
||
|
\DoxyCodeLine{31 }
|
||
|
\DoxyCodeLine{32 \textcolor{preprocessor}{\#include "{}core/GpgConstants.h"{}}}
|
||
|
\DoxyCodeLine{33 \textcolor{preprocessor}{\#include "{}core/GpgContext.h"{}}}
|
||
|
\DoxyCodeLine{34 \textcolor{preprocessor}{\#include "{}core/GpgModel.h"{}}}
|
||
|
\DoxyCodeLine{35 }
|
||
|
\DoxyCodeLine{36 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend}{GpgFrontend}} \{}
|
||
|
\DoxyCodeLine{37 }
|
||
|
\DoxyCodeLine{43 \textcolor{keyword}{class }GPGFRONTEND\_CORE\_EXPORT \mbox{\hyperlink{classGpgFrontend_1_1GpgFileOpera}{GpgFileOpera}}}
|
||
|
\DoxyCodeLine{44 : \textcolor{keyword}{public} \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject}{SingletonFunctionObject}}<GpgFileOpera> \{}
|
||
|
\DoxyCodeLine{45 \textcolor{keyword}{public}:}
|
||
|
\DoxyCodeLine{46 }
|
||
|
\DoxyCodeLine{47 \textcolor{keyword}{explicit} \mbox{\hyperlink{classGpgFrontend_1_1GpgFileOpera}{GpgFileOpera}}(}
|
||
|
\DoxyCodeLine{48 \textcolor{keywordtype}{int} channel = \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a50e2b3794d6553f4231eaec72d9d0a50}{SingletonFunctionObject::GetDefaultChannel}}());}
|
||
|
\DoxyCodeLine{49 }
|
||
|
\DoxyCodeLine{60 \textcolor{keyword}{static} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} EncryptFile(KeyListPtr keys, \textcolor{keyword}{const} std::string\& in\_path,}
|
||
|
\DoxyCodeLine{61 \textcolor{keyword}{const} std::string\& out\_path,}
|
||
|
\DoxyCodeLine{62 GpgEncrResult\& result,}
|
||
|
\DoxyCodeLine{63 \textcolor{keywordtype}{int} \_channel = GPGFRONTEND\_DEFAULT\_CHANNEL);}
|
||
|
\DoxyCodeLine{64 }
|
||
|
\DoxyCodeLine{74 \textcolor{keyword}{static} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} EncryptFileSymmetric(}
|
||
|
\DoxyCodeLine{75 \textcolor{keyword}{const} std::string\& in\_path, \textcolor{keyword}{const} std::string\& out\_path,}
|
||
|
\DoxyCodeLine{76 GpgEncrResult\& result, \textcolor{keywordtype}{int} \_channel = GPGFRONTEND\_DEFAULT\_CHANNEL);}
|
||
|
\DoxyCodeLine{77 }
|
||
|
\DoxyCodeLine{86 \textcolor{keyword}{static} GpgError DecryptFile(\textcolor{keyword}{const} std::string\& in\_path,}
|
||
|
\DoxyCodeLine{87 \textcolor{keyword}{const} std::string\& out\_path,}
|
||
|
\DoxyCodeLine{88 GpgDecrResult\& result);}
|
||
|
\DoxyCodeLine{89 }
|
||
|
\DoxyCodeLine{100 \textcolor{keyword}{static} GpgError SignFile(KeyListPtr keys, \textcolor{keyword}{const} std::string\& in\_path,}
|
||
|
\DoxyCodeLine{101 \textcolor{keyword}{const} std::string\& out\_path, GpgSignResult\& result,}
|
||
|
\DoxyCodeLine{102 \textcolor{keywordtype}{int} \_channel = GPGFRONTEND\_DEFAULT\_CHANNEL);}
|
||
|
\DoxyCodeLine{103 }
|
||
|
\DoxyCodeLine{113 \textcolor{keyword}{static} GpgError VerifyFile(\textcolor{keyword}{const} std::string\& data\_path,}
|
||
|
\DoxyCodeLine{114 \textcolor{keyword}{const} std::string\& sign\_path,}
|
||
|
\DoxyCodeLine{115 GpgVerifyResult\& result,}
|
||
|
\DoxyCodeLine{116 \textcolor{keywordtype}{int} \_channel = GPGFRONTEND\_DEFAULT\_CHANNEL);}
|
||
|
\DoxyCodeLine{117 }
|
||
|
\DoxyCodeLine{130 \textcolor{keyword}{static} GpgError EncryptSignFile(KeyListPtr keys, KeyListPtr signer\_keys,}
|
||
|
\DoxyCodeLine{131 \textcolor{keyword}{const} std::string\& in\_path,}
|
||
|
\DoxyCodeLine{132 \textcolor{keyword}{const} std::string\& out\_path,}
|
||
|
\DoxyCodeLine{133 GpgEncrResult\& encr\_res,}
|
||
|
\DoxyCodeLine{134 GpgSignResult\& sign\_res,}
|
||
|
\DoxyCodeLine{135 \textcolor{keywordtype}{int} \_channel = GPGFRONTEND\_DEFAULT\_CHANNEL);}
|
||
|
\DoxyCodeLine{136 }
|
||
|
\DoxyCodeLine{146 \textcolor{keyword}{static} GpgError DecryptVerifyFile(\textcolor{keyword}{const} std::string\& in\_path,}
|
||
|
\DoxyCodeLine{147 \textcolor{keyword}{const} std::string\& out\_path,}
|
||
|
\DoxyCodeLine{148 GpgDecrResult\& decr\_res,}
|
||
|
\DoxyCodeLine{149 GpgVerifyResult\& verify\_res);}
|
||
|
\DoxyCodeLine{150 \};}
|
||
|
\DoxyCodeLine{151 }
|
||
|
\DoxyCodeLine{152 \} \textcolor{comment}{// namespace GpgFrontend}}
|
||
|
\DoxyCodeLine{153 }
|
||
|
\DoxyCodeLine{154 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// GPGFRONTEND\_GPGFILEOPERA\_H}}
|
||
|
|
||
|
\end{DoxyCode}
|