diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-02-27 11:28:54 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-02-27 12:35:40 +0100 |
commit | b86ae96059f4560258babf4657ffbb426073457e (patch) | |
tree | e56b830ae48d7df14e95cf2a4de5fa9232a2d9e7 | |
parent | 06a179e5a0f2391cbf891eae24e714b7be3ba5c7 (diff) |
openpgp: Fix logging data written to the hash dumper.
-rw-r--r-- | openpgp/src/crypto/hash.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/crypto/hash.rs b/openpgp/src/crypto/hash.rs index c4e7c4c8..532e3d41 100644 --- a/openpgp/src/crypto/hash.rs +++ b/openpgp/src/crypto/hash.rs @@ -310,7 +310,8 @@ impl Digest for HashDumper { impl io::Write for HashDumper { fn write(&mut self, buf: &[u8]) -> io::Result<usize> { - self.hasher.write(buf) + self.update(buf); + Ok(buf.len()) } fn flush(&mut self) -> io::Result<()> { |