Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
WPADEncrypt.c File Reference

Functions

static u8 random ()
 
static u8 ror (u8 src, u8 rot)
 
static u8 rol (u8 src, u8 rol)
 
void WPADiCreateKey (s32 chan)
 
void WPADiDecode (s32 chan, void *p_buf, u16 len, u16 offset)
 

Variables

static u8 SEED
 
static u8 NUM_A
 
static u8 NUM_B
 
static u8 NUM_C
 
static u8 base [0x2A]
 
static u8 tb [0x900]
 

Function Documentation

◆ random()

static u8 random ( )
static

◆ rol()

static u8 rol ( u8 src,
u8 rol )
static

◆ ror()

static u8 ror ( u8 src,
u8 rot )
static

◆ WPADiCreateKey()

void WPADiCreateKey ( s32 chan)

◆ WPADiDecode()

void WPADiDecode ( s32 chan,
void * p_buf,
u16 len,
u16 offset )

Variable Documentation

◆ base

u8 base[0x2A]
static
Initial value:
= {
0xA8, 0x77, 0xA6, 0xE0, 0xF7, 0x43,
0x5A, 0x35, 0x85, 0xE2, 0x72, 0x97,
0x8F, 0xB7, 0x1A, 0x62, 0x87, 0x38,
0x0D, 0x67, 0xC7, 0xBE, 0x4F, 0x3E,
0x20, 0x76, 0x37, 0x8F, 0x68, 0xB7,
0xA9, 0x26, 0x3F, 0x2B, 0x10, 0xE3,
0x30, 0x7E, 0x90, 0x0E, 0x85, 0x0A,
}

◆ NUM_A

u8 NUM_A
static

◆ NUM_B

u8 NUM_B
static

◆ NUM_C

u8 NUM_C
static

◆ SEED

u8 SEED
static

◆ tb

u8 tb[0x900]
static