1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 03:37:47 +00:00

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.
This commit is contained in:
Joshua Goins 2025-03-11 17:17:31 -04:00
parent b54ee74802
commit 87e3423e40
3 changed files with 2 additions and 3 deletions

View file

@ -3,7 +3,8 @@
use std::io::{Cursor, Write}; 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 ROUNDS: usize = 16;
const KEYBITS: u32 = 64u32 >> 3; const KEYBITS: u32 = 64u32 >> 3;

View file

@ -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. /// 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; pub mod blowfish;
mod blowfish_constants;
/// Reading Excel header files (EXH). /// Reading Excel header files (EXH).
pub mod exh; pub mod exh;