rs-crypto 0.1.2

Cryptographic Primitives: ISAAC, RSA, XTEA, Huffman, Whirlpool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! RuneScape Cryptography Utilities
//!
//! Provides cryptographic primitives used by RuneScape:
//! - RSA: Login block encryption/decryption
//! - ISAAC: Stream cipher for packet encryption
//! - XTEA: Block cipher for map region encryption
//! - Huffman: Chat message compression
//! - Whirlpool: Cache reference table hashing

pub mod huffman;
pub mod isaac;
pub mod rsa;
mod whirlpool;
pub mod xtea;

pub fn whirlpool(data: &[u8]) -> [u8; 64] {
    self::whirlpool::whirlpool(data)
}