Lazy developer Makefile rules
[svpe-tools.git] / tools.h
blobcc730a986b57482bbf66beeb0b2a32984147bee4
1 #ifndef _TOOLS_H
2 #define _TOOLS_H
4 typedef unsigned char u8;
5 typedef unsigned short u16;
6 typedef unsigned int u32;
7 typedef unsigned long long u64;
9 u32 be32(u8 *p);
10 u64 be64(u8 *p);
11 u64 be34(u8 *p);
13 void aes_cbc_dec(u8 *key, u8 *iv, u8 *in, u32 len, u8 *out);
15 void get_key(const char *name, u8 *key, u32 len);
16 void decrypt_title_key(u8 *title_key_crypted, u8 *title_id, u8 *title_key);
18 void fatal(const char *s);
20 void print_bytes(u8 *x, u32 n);
22 #endif