Skip to content

Commit

Permalink
gost94: use digest::Output in macros (#154)
Browse files Browse the repository at this point in the history
For consistency, per #153
  • Loading branch information
tarcieri authored Jun 10, 2020
1 parent 26bea13 commit f56b691
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gost94/src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
macro_rules! gost94_impl {
($state:ident, $sbox:expr) => {
use digest::impl_write;
use digest::{consts::U32, generic_array::GenericArray};
use digest::{BlockInput, FixedOutputDirty, Reset, Update};
use digest::{consts::U32, impl_write, BlockInput, FixedOutputDirty, Reset, Update};
use $crate::gost94::{Block, Gost94, SBox};

/// GOST94 state
Expand Down Expand Up @@ -33,7 +31,7 @@ macro_rules! gost94_impl {
impl FixedOutputDirty for $state {
type OutputSize = U32;

fn finalize_into_dirty(&mut self, out: &mut GenericArray<u8, U32>) {
fn finalize_into_dirty(&mut self, out: &mut digest::Output<Self>) {
self.sh.finalize_into_dirty(out)
}
}
Expand Down

0 comments on commit f56b691

Please sign in to comment.