Skip to content

Commit

Permalink
fix: Fix import problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ChisatoNishikigi73 committed Oct 22, 2024
1 parent 2d77b29 commit 37fe7b8
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cryptos"
version = "0.0.1-alpha.2"
version = "0.0.1-alpha.2-patch.1"
edition = "2021"
authors = ["ChisatoNishikigi73 <[email protected]>"]
description = "All cryptographic in one, make crypto easy"
Expand Down
4 changes: 2 additions & 2 deletions src/crypto/hash/md5/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod md5_base;
mod md5_crypt;

pub use md5_base::*;
pub use md5_crypt::*;
pub use md5_base::md5_base;
pub use md5_crypt::md5_crypt;
2 changes: 1 addition & 1 deletion src/crypto/hash/sha1/sha1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const BLOCK_SIZE: usize = 64; // 512 bits = 64 bytes
const HASH_SIZE: usize = 20; // 160 bits = 20 bytes

/// Represents the SHA-1 hash algorithm state.
pub struct Sha1 {
struct Sha1 {
state: [u32; 5],
buffer: [u8; BLOCK_SIZE],
buffer_len: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/hash/sha2/sha224.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const BLOCK_SIZE: usize = 64; // 512 bits = 64 bytes
const HASH_SIZE: usize = 28; // 224 bits = 28 bytes

/// Represents the SHA-224 hash algorithm state.
pub struct Sha224 {
struct Sha224 {
state: [u32; 8],
buffer: [u8; BLOCK_SIZE],
buffer_len: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/hash/sha2/sha256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const BLOCK_SIZE: usize = 64; // 512 bits = 64 bytes
const HASH_SIZE: usize = 32; // 256 bits = 32 bytes

/// Represents the SHA-256 hash algorithm state.
pub struct Sha256 {
struct Sha256 {
state: [u32; 8],
buffer: [u8; BLOCK_SIZE],
buffer_len: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/hash/sha2/sha384.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const BLOCK_SIZE: usize = 128; // 1024 bits = 128 bytes
const HASH_SIZE: usize = 48; // 384 bits = 48 bytes

/// Represents the SHA-384 hash algorithm state.
pub struct Sha384 {
struct Sha384 {
state: [u64; 8],
buffer: [u8; BLOCK_SIZE],
buffer_len: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/hash/sha2/sha512.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const BLOCK_SIZE: usize = 128; // 1024 bits = 128 bytes
const HASH_SIZE: usize = 64; // 512 bits = 64 bytes

/// Represents the SHA-512 hash algorithm state.
pub struct Sha512 {
struct Sha512 {
state: [u64; 8],
buffer: [u8; BLOCK_SIZE],
buffer_len: usize,
Expand Down

0 comments on commit 37fe7b8

Please sign in to comment.