mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 11:47:46 +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:
parent
b54ee74802
commit
87e3423e40
3 changed files with 2 additions and 3 deletions
|
@ -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;
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue