Skip to content

Commit f56b691

Browse files
authored
gost94: use digest::Output in macros (#154)
For consistency, per #153
1 parent 26bea13 commit f56b691

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gost94/src/macros.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
macro_rules! gost94_impl {
22
($state:ident, $sbox:expr) => {
3-
use digest::impl_write;
4-
use digest::{consts::U32, generic_array::GenericArray};
5-
use digest::{BlockInput, FixedOutputDirty, Reset, Update};
3+
use digest::{consts::U32, impl_write, BlockInput, FixedOutputDirty, Reset, Update};
64
use $crate::gost94::{Block, Gost94, SBox};
75

86
/// GOST94 state
@@ -33,7 +31,7 @@ macro_rules! gost94_impl {
3331
impl FixedOutputDirty for $state {
3432
type OutputSize = U32;
3533

36-
fn finalize_into_dirty(&mut self, out: &mut GenericArray<u8, U32>) {
34+
fn finalize_into_dirty(&mut self, out: &mut digest::Output<Self>) {
3735
self.sh.finalize_into_dirty(out)
3836
}
3937
}

0 commit comments

Comments
 (0)