From 87e3423e40582394bf93271ac150c7fbc4df5f54 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 11 Mar 2025 17:17:31 -0400 Subject: [PATCH] Move blowfish stuff into it's own module This cleans up the big src folder we have, this doesn't have any API changes though. --- src/{blowfish_constants.rs => blowfish/constants.rs} | 0 src/{blowfish.rs => blowfish/mod.rs} | 3 ++- src/lib.rs | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) rename src/{blowfish_constants.rs => blowfish/constants.rs} (100%) rename src/{blowfish.rs => blowfish/mod.rs} (98%) 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;