Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Mar 4, 2024
1 parent 3714f3c commit c4640ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions sha1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -34,9 +33,9 @@ mod compress;

pub use compress::compress;

pub(crate) const STATE_LEN: usize = 5;
pub(crate) const BLOCK_SIZE: usize = <Sha1Core as BlockSizeUser>::BlockSize::USIZE;
pub(crate) const INITIAL_H: [u32; 5] = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0];
const STATE_LEN: usize = 5;
const BLOCK_SIZE: usize = <Sha1Core as BlockSizeUser>::BlockSize::USIZE;
const INITIAL_H: [u32; 5] = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0];

/// Core SHA-1 hasher state.
#[derive(Clone)]
Expand Down
1 change: 0 additions & 1 deletion sha1/tests/data/sha1_reducedsha_coll.bin

This file was deleted.

0 comments on commit c4640ba

Please sign in to comment.