Skip to content

Commit

Permalink
sha1-checked: implement BlockSizeUser (#582)
Browse files Browse the repository at this point in the history
Implementing this trait makes it possible to use `sha1-checked` with
`dsa::signing_key::SigningKey::sign_prehashed_rfc6979`
  • Loading branch information
hko-s committed May 15, 2024
1 parent 3fcfa96 commit e7f7317
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sha1-checked/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self>) {
Expand Down

0 comments on commit e7f7317

Please sign in to comment.