From c764aec48599ddfcdb41547e57a899bc87f67160 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 5 Jul 2023 11:24:39 +0200 Subject: openpgp: Fix tracing, dump the right data. --- openpgp/src/parse/hashed_reader.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openpgp/src/parse') diff --git a/openpgp/src/parse/hashed_reader.rs b/openpgp/src/parse/hashed_reader.rs index cc481374..f3646a73 100644 --- a/openpgp/src/parse/hashed_reader.rs +++ b/openpgp/src/parse/hashed_reader.rs @@ -265,9 +265,10 @@ impl Cookie { assert!(ngroups > 1); for h in self.sig_groups[ngroups-2].hashes.iter_mut() { - t!("({:?}): group {} {:?} hashing {} stashed bytes.", + t!("({:?}): group {} {:?} hashing {} stashed bytes: {}", hashes_for, ngroups-2, h.map(|ctx| ctx.algo()), - data.len()); + stashed_data.len(), + crate::fmt::hex::encode_pretty(&stashed_data)); h.update(&stashed_data); } -- cgit v1.2.3