Skip to main content

rs_crypto/
lib.rs

1//! RuneScape Cryptography Utilities
2//!
3//! Provides cryptographic primitives used by RuneScape:
4//! - RSA: Login block encryption/decryption
5//! - ISAAC: Stream cipher for packet encryption
6//! - XTEA: Block cipher for map region encryption
7//! - Huffman: Chat message compression
8//! - Whirlpool: Cache reference table hashing
9
10pub mod huffman;
11pub mod isaac;
12pub mod rsa;
13mod whirlpool;
14pub mod xtea;
15
16pub fn whirlpool(data: &[u8]) -> [u8; 64] {
17    self::whirlpool::whirlpool(data)
18}