Decrypt and Verify
------------------
- Function: GpgmeError gpgme_op_decrypt_verify (GpgmeCtx CTX,
GpgmeData CIPHER, GpgmeData PLAIN, GpgmeSigStat *R_STAT)
The function `gpgme_op_decrypt_verify' decrypts the ciphertext in
the data object CIPHER and stores it into the data object PLAIN.
If CIPHER contains signatures, they will be verified and their
combined status will be returned in R_STAT.
After the operation completed, `gpgme_op_get_sig_status' and
`gpgme_op_get_sig_key' can be used to retrieve more information
about the signatures.
The function returns `GPGME_No_Error' if the ciphertext could be
decrypted successfully, `GPGME_Invalid_Value' if CTX, CIPHER,
PLAIN or R_STAT is not a valid pointer, `GPGME_No_Data' if CIPHER
does not contain any data to decrypt, `GPGME_Decryption_Failed' if
CIPHER is not a valid cipher text, `GPGME_No_Passphrase' if the
passphrase for the secret key could not be retrieved, and passes
through any errors that are reported by the crypto engine support
routines.
- Function: GpgmeError gpgme_op_decrypt_verify (GpgmeCtx CTX,
GpgmeData CIPHER, GpgmeData PLAIN)
The function `gpgme_op_decrypt_verify_start' initiates a
`gpgme_op_decrypt_verify' operation. It can be completed by
calling `gpgme_wait' on the context. Note:Waiting For
Completion.
The function returns `GPGME_No_Error' if the operation could be
started successfully, `GPGME_Invalid_Value' if CTX, CIPHER, PLAIN
or R_STAT is not a valid pointer, and `GPGME_No_Data' if CIPHER
does not contain any data to decrypt.