diff --git a/Cargo.toml b/Cargo.toml index cb0b01e..c93e1c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] description = "All cryptographic in one, make crypto easy" diff --git a/src/crypto/hash/md5/mod.rs b/src/crypto/hash/md5/mod.rs index 43e03b5..7b513ed 100644 --- a/src/crypto/hash/md5/mod.rs +++ b/src/crypto/hash/md5/mod.rs @@ -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; diff --git a/src/crypto/hash/sha1/sha1.rs b/src/crypto/hash/sha1/sha1.rs index 3a2cd92..f7512f7 100644 --- a/src/crypto/hash/sha1/sha1.rs +++ b/src/crypto/hash/sha1/sha1.rs @@ -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, diff --git a/src/crypto/hash/sha2/sha224.rs b/src/crypto/hash/sha2/sha224.rs index 68c69ec..574139e 100644 --- a/src/crypto/hash/sha2/sha224.rs +++ b/src/crypto/hash/sha2/sha224.rs @@ -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, diff --git a/src/crypto/hash/sha2/sha256.rs b/src/crypto/hash/sha2/sha256.rs index a0a69fc..c47c809 100644 --- a/src/crypto/hash/sha2/sha256.rs +++ b/src/crypto/hash/sha2/sha256.rs @@ -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, diff --git a/src/crypto/hash/sha2/sha384.rs b/src/crypto/hash/sha2/sha384.rs index f4ab364..46df669 100644 --- a/src/crypto/hash/sha2/sha384.rs +++ b/src/crypto/hash/sha2/sha384.rs @@ -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, diff --git a/src/crypto/hash/sha2/sha512.rs b/src/crypto/hash/sha2/sha512.rs index 21fbae1..a49ac94 100644 --- a/src/crypto/hash/sha2/sha512.rs +++ b/src/crypto/hash/sha2/sha512.rs @@ -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,