Skip to content

Instantly share code, notes, and snippets.

@kaie
kaie / extract-and-verify.txt
Last active March 6, 2021 15:04
Extract and verify a PGP/MIME signed message as produced by Thunderbird 78
If you have received an encrypted and signed email from Thunderbird 78,
it contains two nested MIME layers. The outer layer contains encrypted
data. If you decrypt it using a tool such as GnuPG, the result is a
PGP/MIME signed message. If you want to verify the signature using
GnuPG, you must split the MIME message into separate parts, the first
message part, and the second signature part.
Ideally a tool should be used that fully understands MIME, and which can
flexibly react to the format of the message. However, at the time of
writing this text, no such tool was known.
diff --git a/src/librekey/key_store_pgp.cpp b/src/librekey/key_store_pgp.cpp
index e0e060f0..ac98eeb4 100644
--- a/src/librekey/key_store_pgp.cpp
+++ b/src/librekey/key_store_pgp.cpp
@@ -154,6 +154,21 @@ rnp_key_add_transferable_userid(pgp_key_t *key, pgp_transferable_userid_t *uid)
return true;
}
+void
+rnp_report_failing_key_id(const pgp_key_t &k)
@kaie
kaie / keybase.md
Created May 24, 2019 08:21
keybase

Keybase proof

I hereby claim:

  • I am kaie on github.
  • I am kaie (https://keybase.io/kaie) on keybase.
  • I have a public key ASALPZGGJQUM-jjlhWNrAersyAyOZVJVVqghrhz4r_NnVAo

To claim this, I am signing this object: