diff --git a/src/blowfish_constants.rs b/src/blowfish/constants.rs similarity index 100% rename from src/blowfish_constants.rs rename to src/blowfish/constants.rs diff --git a/src/blowfish.rs b/src/blowfish/mod.rs similarity index 98% rename from src/blowfish.rs rename to src/blowfish/mod.rs index d82d953..9d4e29c 100755 --- a/src/blowfish.rs +++ b/src/blowfish/mod.rs @@ -3,7 +3,8 @@ use std::io::{Cursor, Write}; -use crate::blowfish_constants::{BLOWFISH_P, BLOWFISH_S}; +mod constants; +use constants::{BLOWFISH_P, BLOWFISH_S}; const ROUNDS: usize = 16; const KEYBITS: u32 = 64u32 >> 3; diff --git a/src/lib.rs b/src/lib.rs index ffa1fea..93e88c8 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,8 +46,6 @@ pub mod patch; /// Implementation of the Blowfish ECB block cipher used by the retail client. It's used to encrypt arguments in the launcher, to prevent login token snooping. pub mod blowfish; -mod blowfish_constants; - /// Reading Excel header files (EXH). pub mod exh;