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-06-26 13:36:38 +0200
commit0be42b99b9dcba6f206a726eeabaafa5a121eb41 (patch)
tree413fc9c3d6ba45e8e4728126e608e17bc426fdb3
parent0576797c957e13a7ab03b1db787db1f5e943cf55 (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 b8225929..291cde35 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -2417,6 +2417,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.
@@ -2427,6 +2429,8 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> {
// the dummy one from the SKESK6 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