rnpgp / rnp

RNP: high performance C++ OpenPGP library used by Mozilla Thunderbird
https://www.rnpgp.org
Other
194 stars 55 forks source link

Check the problem with import of key with revoked subkeys. #1339

Open ni4 opened 3 years ago

ni4 commented 3 years ago

Description

RNP reports rnp/src/librepgp/stream-key.cpp:1117 No secret key data during attempt to import of the secret key with revoked subkeys. Probably GnuPG deletes the secret key data if subkey is revoked, or it was stored on the smartcard.

See more details here: https://bugzilla.mozilla.org/show_bug.cgi?id=1674715

ni4 commented 3 years ago

Tried exporting revoked subkeys from GnuPG and importing/decrypting on RNP side, and wasn't able to reproduce the issue.

ni4 commented 2 years ago

Probably some older versions of GnuPG didn't use dummy s2k but just exported empty secret key data.