diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-07-05 11:24:39 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-07-07 15:29:28 +0200 |
commit | c764aec48599ddfcdb41547e57a899bc87f67160 (patch) | |
tree | c6272b223f85b262cdb622bdb29c4955d2242813 | |
parent | 9e48a064e55e5ee61bc8caf6d7d0979c398aa4cd (diff) |
openpgp: Fix tracing, dump the right data.
-rw-r--r-- | openpgp/src/parse/hashed_reader.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |