summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openpgp/src/crypto/hash.rs3
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<()> {