gpg: used key is not marked for encryption use.

Jonathan Kaczynski jonathan.kaczynski at
Sat Jul 24 02:00:07 CEST 2021


I'm trying to understand the scenario in which we see the log message,
"gpg: used key is not marked for encryption use." I haven't been able to
find any mentions of the phrase on the web, so I turned to the source code.

Looking at;a=blob;f=g10/pubkey-enc.c;h=6e1b0898e4b3687ef4d57ae1a6270782723b01e3;hb=refs/heads/master#l146
it is a little difficult to tease out.

The context is I'm trying to debug why another party's encrypted file is
producing this extra log message by gpg-2.3.1, and if it matters. They used
a tool which uses the BouncyCastle java library.

Would someone be able to help me with this?

Thank you,
Jonathan Kaczynski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Gnupg-users mailing list