summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-05-09 16:29:31 +0200
committerJustus Winter <justus@sequoia-pgp.org>2023-05-23 15:48:48 +0200
commit1b7acda65271b051c7b393591191ca8e96d64f11 (patch)
treeff1ab67fc74c1100da8e2c0a36f3ad896cc14b2b
parentd1fb7c0582058ccbe262b6650ca43f627ed8d628 (diff)
openpgp: Improve tracing.
-rw-r--r--openpgp/src/parse/stream.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs
index 8661143d..74036553 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -2416,6 +2416,8 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> {
Packet::CompressedData(ref p) =>
v.structure.new_compression_layer(p.algo()),
Packet::SEIP(_) | Packet::AED(_) if v.mode == Mode::Decrypt => {
+ t!("Found the encryption container");
+
// Get the symmetric algorithm from the decryption
// proxy function. This is necessary because we
// cannot get the algorithm from the SEIP packet.
@@ -2426,6 +2428,8 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> {
// the dummy one from the SKESK5 packet.
let algo = sym_algo_hint.unwrap_or(algo);
let result = pp.decrypt(algo, secret);
+ t!("pp.decrypt({:?}, {:?}) => {:?}",
+ algo, secret, result);
if let Ok(_) = result {
sym_algo = Some(algo);
true