2022-05-08 19:59:26 +00:00
\hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator} { } \doxysection { Gpg\+ Frontend\+ ::Gpg\+ Basic\+ Operator Class Reference}
\label { classGpgFrontend_ 1_ 1GpgBasicOperator} \index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
Basic operation collection.
{ \ttfamily \# include $ < $ Gpg\+ Basic\+ Operator.\+ h$ > $ }
Inheritance diagram for Gpg\+ Frontend\+ ::Gpg\+ Basic\+ Operator\+ :
2022-05-08 22:01:23 +00:00
\nopagebreak
\begin { figure} [H]
\begin { center}
\leavevmode
\includegraphics [height=550pt] { classGpgFrontend_ 1_ 1GpgBasicOperator_ _ inherit_ _ graph}
\end { center}
\end { figure}
2022-05-08 19:59:26 +00:00
Collaboration diagram for Gpg\+ Frontend\+ ::Gpg\+ Basic\+ Operator\+ :
2022-05-08 22:01:23 +00:00
\nopagebreak
\begin { figure} [H]
\begin { center}
\leavevmode
\includegraphics [width=350pt] { classGpgFrontend_ 1_ 1GpgBasicOperator_ _ coll_ _ graph}
\end { center}
\end { figure}
2022-05-08 19:59:26 +00:00
\doxysubsection * { Public Member Functions}
\begin { DoxyCompactItemize}
\item
\mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ a139be86330f88e5f833aa24263a3b2ae} { Gpg\+ Basic\+ Operator} } (int channel=\mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ a50e2b3794d6553f4231eaec72d9d0a50} { Singleton\+ Function\+ Object\+ ::\+ Get\+ Default\+ Channel} } ())
\begin { DoxyCompactList} \small \item \em Construct a new Basic Operator object. \end { DoxyCompactList} \item
gpg\+ \_ \+ error\+ \_ \+ t \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ a32e1eac6bb0f322588ae75ae36a9884a} { Encrypt} } (Key\+ List\+ Ptr keys, Bype\+ Array\+ Ref in\+ \_ \+ buffer, Byte\+ Array\+ Ptr \& out\+ \_ \+ buffer, Gpg\+ Encr\+ Result \& result)
\begin { DoxyCompactList} \small \item \em Call the interface provided by gpgme for encryption operation. \end { DoxyCompactList} \item
gpg\+ \_ \+ error\+ \_ \+ t \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ a8f4ef57e941a066ad9d070eee51e2073} { Encrypt\+ Symmetric} } (Bype\+ Array\+ Ref in\+ \_ \+ buffer, Byte\+ Array\+ Ptr \& out\+ \_ \+ buffer, Gpg\+ Encr\+ Result \& result)
2022-05-08 22:01:23 +00:00
\begin { DoxyCompactList} \small \item \em Call the interface provided by G\+ P\+ G\+ ME to symmetrical encryption. \end { DoxyCompactList} \item
2022-05-08 19:59:26 +00:00
gpgme\+ \_ \+ error\+ \_ \+ t \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ a08906cf2bc2ddad8489438610f388f8a} { Encrypt\+ Sign} } (Key\+ List\+ Ptr keys, Key\+ List\+ Ptr signers, Bype\+ Array\+ Ref in\+ \_ \+ buffer, Byte\+ Array\+ Ptr \& out\+ \_ \+ buffer, Gpg\+ Encr\+ Result \& encr\+ \_ \+ result, Gpg\+ Sign\+ Result \& sign\+ \_ \+ result)
\begin { DoxyCompactList} \small \item \em Call the interface provided by gpgme to perform encryption and signature operations at the same time. \end { DoxyCompactList} \item
gpgme\+ \_ \+ error\+ \_ \+ t \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ a9ea9e81194917e08f46eb657281b7953} { Decrypt} } (Bype\+ Array\+ Ref in\+ \_ \+ buffer, Byte\+ Array\+ Ptr \& out\+ \_ \+ buffer, Gpg\+ Decr\+ Result \& result)
\begin { DoxyCompactList} \small \item \em Call the interface provided by gpgme for decryption operation. \end { DoxyCompactList} \item
gpgme\+ \_ \+ error\+ \_ \+ t \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ a11845a9a3ea2941e14faa9130f0ac9ef} { Decrypt\+ Verify} } (Bype\+ Array\+ Ref in\+ \_ \+ buffer, Byte\+ Array\+ Ptr \& out\+ \_ \+ buffer, Gpg\+ Decr\+ Result \& decrypt\+ \_ \+ result, Gpg\+ Verify\+ Result \& verify\+ \_ \+ result)
\begin { DoxyCompactList} \small \item \em Call the interface provided by gpgme to perform decryption and verification operations at the same time. \end { DoxyCompactList} \item
gpgme\+ \_ \+ error\+ \_ \+ t \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ af0347cb28ff73b2250395ceaa9001509} { Verify} } (Bype\+ Array\+ Ref in\+ \_ \+ buffer, Byte\+ Array\+ Ptr \& sig\+ \_ \+ buffer, Gpg\+ Verify\+ Result \& result) const
\begin { DoxyCompactList} \small \item \em Call the interface provided by gpgme for verification operation. \end { DoxyCompactList} \item
gpg\+ \_ \+ error\+ \_ \+ t \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ a988d7e65e85fc7a578f26300332a65d3} { Sign} } (Key\+ List\+ Ptr signers, Bype\+ Array\+ Ref in\+ \_ \+ buffer, Byte\+ Array\+ Ptr \& out\+ \_ \+ buffer, gpgme\+ \_ \+ sig\+ \_ \+ mode\+ \_ \+ t mode, Gpg\+ Sign\+ Result \& result)
\begin { DoxyCompactList} \small \item \em Call the interface provided by gpgme for signing operation. \end { DoxyCompactList} \item
void \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ ad6ea3596ba7d7543fb1b8233d09996df} { Set\+ Signers} } (Key\+ Args\+ List \& signers)
\begin { DoxyCompactList} \small \item \em Set the private key for signatures, this operation is a global operation. \end { DoxyCompactList} \item
std\+ ::unique\+ \_ \+ ptr$ < $ Key\+ Args\+ List $ > $ \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ a78f37b8d5afd6c0248665a4415f880cf} { Get\+ Signers} } ()
\begin { DoxyCompactList} \small \item \em Get a global signature private keys that has been set. \end { DoxyCompactList} \end { DoxyCompactItemize}
\doxysubsection * { Private Attributes}
\begin { DoxyCompactItemize}
\item
\mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgContext} { Gpg\+ Context} } \& \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgBasicOperator_ afad990a43ab06a060a93db9948ebb740} { ctx\+ \_ \+ } }
\begin { DoxyCompactList} \small \item \em Corresponding context. \end { DoxyCompactList} \end { DoxyCompactItemize}
\doxysubsection * { Additional Inherited Members}
\doxysubsection { Detailed Description}
Basic operation collection.
2022-05-08 22:01:23 +00:00
2022-05-08 19:59:26 +00:00
\doxysubsection { Constructor \& Destructor Documentation}
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ a139be86330f88e5f833aa24263a3b2ae} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ a139be86330f88e5f833aa24263a3b2ae} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !GpgBasicOperator@{ GpgBasicOperator} }
\index { GpgBasicOperator@{ GpgBasicOperator} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { GpgBasicOperator()} { GpgBasicOperator()} }
{ \footnotesize \ttfamily Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Gpg\+ Basic\+ Operator (\begin { DoxyParamCaption} \item [{int}] { channel = { \ttfamily \mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ a50e2b3794d6553f4231eaec72d9d0a50} { Singleton\+ Function\+ Object\+ ::\+ Get\+ Default\+ Channel} } ()} } \end { DoxyParamCaption} )\hspace { 0.3cm} { \ttfamily [explicit]} }
Construct a new Basic Operator object.
\begin { DoxyParams} { Parameters}
{ \em channel} & Channel corresponding to the context\\
\hline
\end { DoxyParams}
Copyright (C) 2021 Saturneric
This file is part of \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } .
2022-05-08 22:01:23 +00:00
\mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } is free software\+ : you can redistribute it and/or modify it under the terms of the G\+ NU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
\mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } is distributed in the hope that it will be useful, but W\+ I\+ T\+ H\+ O\+ UT A\+ NY W\+ A\+ R\+ R\+ A\+ N\+ TY; without even the implied warranty of M\+ E\+ R\+ C\+ H\+ A\+ N\+ T\+ A\+ B\+ I\+ L\+ I\+ TY or F\+ I\+ T\+ N\+ E\+ SS F\+ OR A P\+ A\+ R\+ T\+ I\+ C\+ U\+ L\+ AR P\+ U\+ R\+ P\+ O\+ SE. See the G\+ NU General Public License for more details.
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
You should have received a copy of the G\+ NU General Public License along with \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } . If not, see \href { https://www.gnu.org/licenses/} { \texttt { https\+ ://www.\+ gnu.\+ org/licenses/} } .
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
The initial version of the source code is inherited from the gpg4usb project, which is under G\+ P\+ L-\/ 3.\+ 0-\/ or-\/ later.
2022-05-08 19:59:26 +00:00
All the source code of \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } was modified and released by Saturneric\href { mailto:eric@bktus.com} { \texttt { eric@bktus.\+ com} } starting on May 12, 2021.
2022-05-08 22:01:23 +00:00
S\+ P\+ D\+ X-\/ \+ License-\/ \+ Identifier\+ : G\+ P\+ L-\/ 3.\+ 0-\/ or-\/ later
2022-05-08 19:59:26 +00:00
\doxysubsection { Member Function Documentation}
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ a9ea9e81194917e08f46eb657281b7953} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ a9ea9e81194917e08f46eb657281b7953} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !Decrypt@{ Decrypt} }
\index { Decrypt@{ Decrypt} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { Decrypt()} { Decrypt()} }
{ \footnotesize \ttfamily Gpg\+ Frontend\+ ::\+ Gpg\+ Error Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Decrypt (\begin { DoxyParamCaption} \item [{Bype\+Array\+Ref}] { in\+ \_ \+ buffer, } \item [{Gpg\+Frontend\+::\+Byte\+Array\+Ptr \&}] { out\+ \_ \+ buffer, } \item [{Gpg\+Frontend\+::\+Gpg\+Decr\+Result \&}] { result } \end { DoxyParamCaption} )}
Call the interface provided by gpgme for decryption operation.
\begin { DoxyParams} { Parameters}
{ \em in\+ \_ \+ buffer} & data that needs to be decrypted \\
\hline
{ \em out\+ \_ \+ buffer} & decrypted data \\
\hline
{ \em result} & the result of the operation \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
error code
\end { DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+ Frontend\+ ::\+ \_ \+ new\+ \_ \+ result(), Gpg\+ Frontend\+ ::check\+ \_ \+ gpg\+ \_ \+ error(), and Gpg\+ Frontend\+ ::\+ Gpg\+ Data\+ ::\+ Read2\+ Buffer().
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Gpg\+ Frontend\+ ::\+ Gpg\+ File\+ Opera\+ ::\+ Decrypt\+ File(), and Gpg\+ Frontend\+ ::\+ U\+ I\+ ::\+ Main\+ Window\+ ::slot\+ \_ \+ decrypt().
2022-05-08 19:59:26 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ a11845a9a3ea2941e14faa9130f0ac9ef} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ a11845a9a3ea2941e14faa9130f0ac9ef} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !DecryptVerify@{ DecryptVerify} }
\index { DecryptVerify@{ DecryptVerify} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { DecryptVerify()} { DecryptVerify()} }
{ \footnotesize \ttfamily gpgme\+ \_ \+ error\+ \_ \+ t Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Decrypt\+ Verify (\begin { DoxyParamCaption} \item [{Bype\+Array\+Ref}] { in\+ \_ \+ buffer, } \item [{Byte\+Array\+Ptr \&}] { out\+ \_ \+ buffer, } \item [{Gpg\+Decr\+Result \&}] { decrypt\+ \_ \+ result, } \item [{Gpg\+Verify\+Result \&}] { verify\+ \_ \+ result } \end { DoxyParamCaption} )}
Call the interface provided by gpgme to perform decryption and verification operations at the same time.
\begin { DoxyParams} { Parameters}
{ \em in\+ \_ \+ buffer} & data to be manipulated \\
\hline
{ \em out\+ \_ \+ buffer} & data resulting from decryption operation \\
\hline
{ \em decrypt\+ \_ \+ result} & the result of the decrypting operation \\
\hline
{ \em verify\+ \_ \+ result} & the result of the verifying operation \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
error code
\end { DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+ Frontend\+ ::\+ \_ \+ new\+ \_ \+ result(), Gpg\+ Frontend\+ ::check\+ \_ \+ gpg\+ \_ \+ error(), and Gpg\+ Frontend\+ ::\+ Gpg\+ Data\+ ::\+ Read2\+ Buffer().
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Gpg\+ Frontend\+ ::\+ Gpg\+ File\+ Opera\+ ::\+ Decrypt\+ Verify\+ File(), and Gpg\+ Frontend\+ ::\+ U\+ I\+ ::\+ Main\+ Window\+ ::slot\+ \_ \+ decrypt\+ \_ \+ verify().
2022-05-08 19:59:26 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ a32e1eac6bb0f322588ae75ae36a9884a} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ a32e1eac6bb0f322588ae75ae36a9884a} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !Encrypt@{ Encrypt} }
\index { Encrypt@{ Encrypt} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { Encrypt()} { Encrypt()} }
{ \footnotesize \ttfamily Gpg\+ Frontend\+ ::\+ Gpg\+ Error Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Encrypt (\begin { DoxyParamCaption} \item [{Key\+List\+Ptr}] { keys, } \item [{Gpg\+Frontend\+::\+Bype\+Array\+Ref}] { in\+ \_ \+ buffer, } \item [{Gpg\+Frontend\+::\+Byte\+Array\+Ptr \&}] { out\+ \_ \+ buffer, } \item [{Gpg\+Frontend\+::\+Gpg\+Encr\+Result \&}] { result } \end { DoxyParamCaption} )}
Call the interface provided by gpgme for encryption operation.
All incoming data pointers out\+ \_ \+ buffer will be replaced with new valid values
\begin { DoxyParams} { Parameters}
{ \em keys} & list of public keys \\
\hline
{ \em in\+ \_ \+ buffer} & data that needs to be encrypted \\
\hline
{ \em out\+ \_ \+ buffer} & encrypted data \\
\hline
{ \em result} & the result of the operation \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
error code
\end { DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+ Frontend\+ ::\+ \_ \+ new\+ \_ \+ result(), Gpg\+ Frontend\+ ::check\+ \_ \+ gpg\+ \_ \+ error(), and Gpg\+ Frontend\+ ::\+ Gpg\+ Data\+ ::\+ Read2\+ Buffer().
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Gpg\+ Frontend\+ ::\+ Gpg\+ File\+ Opera\+ ::\+ Encrypt\+ File(), and Gpg\+ Frontend\+ ::\+ U\+ I\+ ::\+ Main\+ Window\+ ::slot\+ \_ \+ encrypt().
2022-05-08 19:59:26 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ a08906cf2bc2ddad8489438610f388f8a} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ a08906cf2bc2ddad8489438610f388f8a} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !EncryptSign@{ EncryptSign} }
\index { EncryptSign@{ EncryptSign} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { EncryptSign()} { EncryptSign()} }
{ \footnotesize \ttfamily gpgme\+ \_ \+ error\+ \_ \+ t Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Encrypt\+ Sign (\begin { DoxyParamCaption} \item [{Key\+List\+Ptr}] { keys, } \item [{Key\+List\+Ptr}] { signers, } \item [{Bype\+Array\+Ref}] { in\+ \_ \+ buffer, } \item [{Byte\+Array\+Ptr \&}] { out\+ \_ \+ buffer, } \item [{Gpg\+Encr\+Result \&}] { encr\+ \_ \+ result, } \item [{Gpg\+Sign\+Result \&}] { sign\+ \_ \+ result } \end { DoxyParamCaption} )}
Call the interface provided by gpgme to perform encryption and signature operations at the same time.
\begin { DoxyParams} { Parameters}
{ \em keys} & List of public keys \\
\hline
{ \em signers} & Private key for signatures \\
\hline
{ \em in\+ \_ \+ buffer} & Data for operation \\
\hline
{ \em out\+ \_ \+ buffer} & Encrypted data \\
\hline
{ \em encr\+ \_ \+ result} & Encrypted results \\
\hline
{ \em sign\+ \_ \+ result} & Signature result \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
\end { DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+ Frontend\+ ::\+ \_ \+ new\+ \_ \+ result(), Gpg\+ Frontend\+ ::check\+ \_ \+ gpg\+ \_ \+ error(), and Gpg\+ Frontend\+ ::\+ Gpg\+ Data\+ ::\+ Read2\+ Buffer().
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Gpg\+ Frontend\+ ::\+ Gpg\+ File\+ Opera\+ ::\+ Encrypt\+ Sign\+ File(), and Gpg\+ Frontend\+ ::\+ U\+ I\+ ::\+ Main\+ Window\+ ::slot\+ \_ \+ encrypt\+ \_ \+ sign().
2022-05-08 19:59:26 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ a8f4ef57e941a066ad9d070eee51e2073} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ a8f4ef57e941a066ad9d070eee51e2073} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !EncryptSymmetric@{ EncryptSymmetric} }
\index { EncryptSymmetric@{ EncryptSymmetric} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { EncryptSymmetric()} { EncryptSymmetric()} }
{ \footnotesize \ttfamily gpg\+ \_ \+ error\+ \_ \+ t Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Encrypt\+ Symmetric (\begin { DoxyParamCaption} \item [{Bype\+Array\+Ref}] { in\+ \_ \+ buffer, } \item [{Byte\+Array\+Ptr \&}] { out\+ \_ \+ buffer, } \item [{Gpg\+Encr\+Result \&}] { result } \end { DoxyParamCaption} )}
2022-05-08 22:01:23 +00:00
Call the interface provided by G\+ P\+ G\+ ME to symmetrical encryption.
2022-05-08 19:59:26 +00:00
\begin { DoxyParams} { Parameters}
{ \em in\+ \_ \+ buffer} & Data for encryption \\
\hline
{ \em out\+ \_ \+ buffer} & Encrypted data \\
\hline
{ \em result} & Encrypted results \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
gpg\+ \_ \+ error\+ \_ \+ t
\end { DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+ Frontend\+ ::\+ \_ \+ new\+ \_ \+ result(), Gpg\+ Frontend\+ ::check\+ \_ \+ gpg\+ \_ \+ error(), and Gpg\+ Frontend\+ ::\+ Gpg\+ Data\+ ::\+ Read2\+ Buffer().
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Gpg\+ Frontend\+ ::\+ Gpg\+ File\+ Opera\+ ::\+ Encrypt\+ File\+ Symmetric(), and Gpg\+ Frontend\+ ::\+ U\+ I\+ ::\+ Main\+ Window\+ ::slot\+ \_ \+ encrypt().
2022-05-08 19:59:26 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ a78f37b8d5afd6c0248665a4415f880cf} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ a78f37b8d5afd6c0248665a4415f880cf} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !GetSigners@{ GetSigners} }
\index { GetSigners@{ GetSigners} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { GetSigners()} { GetSigners()} }
{ \footnotesize \ttfamily std\+ ::unique\+ \_ \+ ptr$ < $ Gpg\+ Frontend\+ ::\+ Key\+ Args\+ List $ > $ Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Get\+ Signers (\begin { DoxyParamCaption} { } \end { DoxyParamCaption} )}
Get a global signature private keys that has been set.
\begin { DoxyReturn} { Returns}
Intelligent pointer pointing to the private key list
\end { DoxyReturn}
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ ad6ea3596ba7d7543fb1b8233d09996df} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ ad6ea3596ba7d7543fb1b8233d09996df} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !SetSigners@{ SetSigners} }
\index { SetSigners@{ SetSigners} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { SetSigners()} { SetSigners()} }
{ \footnotesize \ttfamily void Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Set\+ Signers (\begin { DoxyParamCaption} \item [{Key\+Args\+List \&}] { signers } \end { DoxyParamCaption} )}
Set the private key for signatures, this operation is a global operation.
\begin { DoxyParams} { Parameters}
{ \em keys} & \\
\hline
\end { DoxyParams}
2022-05-08 22:01:23 +00:00
References Gpg\+ Frontend\+ ::check\+ \_ \+ gpg\+ \_ \+ error().
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Gpg\+ Frontend\+ ::\+ Gpg\+ Key\+ Manager\+ ::\+ Sign\+ Key().
2022-05-08 19:59:26 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ a988d7e65e85fc7a578f26300332a65d3} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ a988d7e65e85fc7a578f26300332a65d3} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !Sign@{ Sign} }
\index { Sign@{ Sign} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { Sign()} { Sign()} }
{ \footnotesize \ttfamily Gpg\+ Frontend\+ ::\+ Gpg\+ Error Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Sign (\begin { DoxyParamCaption} \item [{Key\+List\+Ptr}] { signers, } \item [{Bype\+Array\+Ref}] { in\+ \_ \+ buffer, } \item [{Byte\+Array\+Ptr \&}] { out\+ \_ \+ buffer, } \item [{gpgme\+\_\+sig\+\_\+mode\+\_\+t}] { mode, } \item [{Gpg\+Sign\+Result \&}] { result } \end { DoxyParamCaption} )}
Call the interface provided by gpgme for signing operation.
2022-05-08 22:01:23 +00:00
The signing modes are as follows\+ : `G\+ P\+ G\+ M\+ E\+ \_ \+ \+ S\+ I\+ G\+ \_ \+ \+ M\+ O\+ D\+ E\+ \_ \+ \+ N\+ O\+ R\+ M\+ AL' A normal signature is made, the output includes the plaintext and the signature. `G\+ P\+ G\+ M\+ E\+ \_ \+ \+ S\+ I\+ G\+ \_ \+ \+ M\+ O\+ D\+ E\+ \_ \+ \+ D\+ E\+ T\+ A\+ CH' A detached signature is made. `G\+ P\+ G\+ M\+ E\+ \_ \+ \+ S\+ I\+ G\+ \_ \+ \+ M\+ O\+ D\+ E\+ \_ \+ \+ C\+ L\+ E\+ AR' A clear text signature is made. The A\+ S\+ C\+ II armor and text mode settings of the context are ignored.
2022-05-08 19:59:26 +00:00
\begin { DoxyParams} { Parameters}
{ \em signers} & private keys for signing operations \\
\hline
{ \em in\+ \_ \+ buffer} & data that needs to be signed \\
\hline
{ \em out\+ \_ \+ buffer} & verified data \\
\hline
{ \em mode} & signing mode \\
\hline
{ \em result} & the result of the operation \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
error code
\end { DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+ Frontend\+ ::\+ \_ \+ new\+ \_ \+ result(), Gpg\+ Frontend\+ ::check\+ \_ \+ gpg\+ \_ \+ error(), and Gpg\+ Frontend\+ ::\+ Gpg\+ Data\+ ::\+ Read2\+ Buffer().
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Gpg\+ Frontend\+ ::\+ Gpg\+ File\+ Opera\+ ::\+ Sign\+ File(), and Gpg\+ Frontend\+ ::\+ U\+ I\+ ::\+ Main\+ Window\+ ::slot\+ \_ \+ sign().
2022-05-08 19:59:26 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ af0347cb28ff73b2250395ceaa9001509} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ af0347cb28ff73b2250395ceaa9001509} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !Verify@{ Verify} }
\index { Verify@{ Verify} !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { Verify()} { Verify()} }
{ \footnotesize \ttfamily Gpg\+ Frontend\+ ::\+ Gpg\+ Error Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::\+ Verify (\begin { DoxyParamCaption} \item [{Bype\+Array\+Ref}] { in\+ \_ \+ buffer, } \item [{Byte\+Array\+Ptr \&}] { sig\+ \_ \+ buffer, } \item [{Gpg\+Verify\+Result \&}] { result } \end { DoxyParamCaption} ) const}
Call the interface provided by gpgme for verification operation.
\begin { DoxyParams} { Parameters}
{ \em in\+ \_ \+ buffer} & data that needs to be verified \\
\hline
{ \em out\+ \_ \+ buffer} & verified data \\
\hline
{ \em result} & the result of the operation \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
error code
\end { DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+ Frontend\+ ::\+ \_ \+ new\+ \_ \+ result(), and Gpg\+ Frontend\+ ::check\+ \_ \+ gpg\+ \_ \+ error().
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Gpg\+ Frontend\+ ::\+ U\+ I\+ ::\+ Main\+ Window\+ ::slot\+ \_ \+ verify(), and Gpg\+ Frontend\+ ::\+ Gpg\+ File\+ Opera\+ ::\+ Verify\+ File().
2022-05-08 19:59:26 +00:00
\doxysubsection { Member Data Documentation}
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgBasicOperator_ afad990a43ab06a060a93db9948ebb740} \label { classGpgFrontend_ 1_ 1GpgBasicOperator_ afad990a43ab06a060a93db9948ebb740} }
\index { GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} !ctx\_ @{ ctx\_ } }
\index { ctx\_ @{ ctx\_ } !GpgFrontend::GpgBasicOperator@{ GpgFrontend::GpgBasicOperator} }
\doxysubsubsection { \texorpdfstring { ctx\_ } { ctx\_ } }
{ \footnotesize \ttfamily \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgContext} { Gpg\+ Context} } \& Gpg\+ Frontend\+ ::\+ Gpg\+ Basic\+ Operator\+ ::ctx\+ \_ \+ \hspace { 0.3cm} { \ttfamily [private]} }
{ \bfseries Initial value\+ :}
\begin { DoxyCode} { 0}
2022-05-08 22:01:23 +00:00
\DoxyCodeLine { = \mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ a70484d7cfe9f9dcbcd5f8bb749250f36} { GpgContext::GetInstance} } (}
2022-05-08 19:59:26 +00:00
\DoxyCodeLine { \mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ aa99440b9177f5d0c18840f08a40d64b7} { SingletonFunctionObject::GetChannel} } ())}
\end { DoxyCode}
Corresponding context.
The documentation for this class was generated from the following files\+ :\begin { DoxyCompactItemize}
\item
src/core/function/gpg/Gpg\+ Basic\+ Operator.\+ h\item
src/core/function/gpg/Gpg\+ Basic\+ Operator.\+ cpp\end { DoxyCompactItemize}