[Resend] Assistance with decryption failure, gpg unable to find secret key that actually exists
gniibe at fsij.org
Thu Aug 18 07:22:21 CEST 2016
On 08/17/2016 11:00 PM, Spoofy32 . wrote:
> --status-file outputs:
> [GNUPG:] ENC_TO XXXXXXXXXXXXXXXX 1 0
> [GNUPG:] GOOD_PASSPHRASE
> [GNUPG:] ERROR pkdecrypt_failed 18
> [GNUPG:] BEGIN_DECRYPTION
> [GNUPG:] DECRYPTION_FAILED
> [GNUPG:] END_DECRYPTION
> Is there a place where error code 18 is defined?
In libgpg-error/doc/errorref.txt, it says:
18 GPG_ERR_WRONG_SECKEY Wrong secret key used
In the code of GnuPG, this error occurs when decryption by your
private key is finished to get the secret session key, but the result
of the secret session key is found malformed.
I'm reading gnupg/g10/pubkey-enc.c.
More information about the Gnupg-users