gpg: keydb_search failed: Broken pipe

William Holmes xylene2016 at
Sun Apr 25 22:41:32 CEST 2021

I just found an issue today.
There's 2 keys, TestUser1 and TestUser2.
TestUser1 was without a passphrase.
TestUser2 was passphrase-protected, and used Curve 448 for encryption.
I encrypted the file with '--hidden-recipient'.
After decryption failed, gpg-agent was killed.

Here's the output:
# gpg2 --version
gpg (GnuPG) 2.3.1
libgcrypt 1.9.3

# gpg2 -k
pub   ed25519/0xFB3157F958F70A96 2021-04-25 [SC]
uid                   [ultimate] TestUser1
sub   cv25519/0x2EE9DBD136764E1E 2021-04-25 [E]

pub   ed25519/0x19EC312D820A2F6E 2021-04-25 [C]
uid                   [ultimate] TestUser2
sub   ed25519/0x92588FA653AED764 2021-04-25 [S]
sub   cv448/0xB36D6CA2989293FF 2021-04-25 [E]
sub   ed25519/0x6C12D278DF8E2792 2021-04-25 [A]

# gpg2 -a -R 0xB36D6CA2989293FF! -e 1.txt
# gpg2 -d 1.txt.asc
gpg: encrypted with ECDH key, ID 0x0000000000000000
gpg: anonymous recipient; trying secret key 0x2EE9DBD136764E1E ...
gpg: keydb_search failed: Broken pipe
gpg: public key decryption failed: End of file
gpg: decryption failed: End of file


- William
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Gnupg-users mailing list