From c4640bac27b6da6ef3edb52e35124ac030a4d731 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Mon, 4 Mar 2024 18:27:13 +0100 Subject: [PATCH] more cleanup --- sha1/src/lib.rs | 9 ++++----- sha1/tests/data/sha1_reducedsha_coll.bin | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 sha1/tests/data/sha1_reducedsha_coll.bin diff --git a/sha1/src/lib.rs b/sha1/src/lib.rs index 4cd381243..a17886a72 100644 --- a/sha1/src/lib.rs +++ b/sha1/src/lib.rs @@ -9,8 +9,7 @@ pub use digest::{self, Digest}; -use core::fmt; -use core::slice::from_ref; +use core::{fmt, slice::from_ref}; use digest::{ array::Array, block_buffer::Eager, @@ -34,9 +33,9 @@ mod compress; pub use compress::compress; -pub(crate) const STATE_LEN: usize = 5; -pub(crate) const BLOCK_SIZE: usize = ::BlockSize::USIZE; -pub(crate) const INITIAL_H: [u32; 5] = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]; +const STATE_LEN: usize = 5; +const BLOCK_SIZE: usize = ::BlockSize::USIZE; +const INITIAL_H: [u32; 5] = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]; /// Core SHA-1 hasher state. #[derive(Clone)] diff --git a/sha1/tests/data/sha1_reducedsha_coll.bin b/sha1/tests/data/sha1_reducedsha_coll.bin deleted file mode 100644 index 462333622..000000000 --- a/sha1/tests/data/sha1_reducedsha_coll.bin +++ /dev/null @@ -1 +0,0 @@ -~9:pऄޥVZ-kqpDx$ . (8<+sC>NM]{$,+0ThEC !R6+f^j@,9|<r \ No newline at end of file