From f56b6910b5628a7fc2696d38d4b9278c63ff7dca Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 9 Jun 2020 17:13:41 -0700 Subject: [PATCH] gost94: use digest::Output in macros (#154) For consistency, per #153 --- gost94/src/macros.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gost94/src/macros.rs b/gost94/src/macros.rs index 09ba786b4..bd00cdc08 100644 --- a/gost94/src/macros.rs +++ b/gost94/src/macros.rs @@ -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 @@ -33,7 +31,7 @@ macro_rules! gost94_impl { impl FixedOutputDirty for $state { type OutputSize = U32; - fn finalize_into_dirty(&mut self, out: &mut GenericArray) { + fn finalize_into_dirty(&mut self, out: &mut digest::Output) { self.sh.finalize_into_dirty(out) } }