From e7f731708748e42406e4459f4dc5c6f96a4559e8 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer <59601023+hko-s@users.noreply.github.com> Date: Wed, 15 May 2024 13:53:58 +0200 Subject: [PATCH] sha1-checked: implement BlockSizeUser (#582) Implementing this trait makes it possible to use `sha1-checked` with `dsa::signing_key::SigningKey::sign_prehashed_rfc6979` --- sha1-checked/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sha1-checked/src/lib.rs b/sha1-checked/src/lib.rs index 1dcf28da..651b0b16 100644 --- a/sha1-checked/src/lib.rs +++ b/sha1-checked/src/lib.rs @@ -197,6 +197,10 @@ impl OutputSizeUser for Sha1 { type OutputSize = U20; } +impl BlockSizeUser for Sha1 { + type BlockSize = U64; +} + impl FixedOutput for Sha1 { #[inline] fn finalize_into(mut self, out: &mut Output) {