From 9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 18 Mar 2009 20:52:11 +0100 Subject: Initial commit of sources --- crypto.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 crypto.h (limited to 'crypto.h') diff --git a/crypto.h b/crypto.h new file mode 100644 index 0000000..d6b42fe --- /dev/null +++ b/crypto.h @@ -0,0 +1,19 @@ +/** + * crypto.h + */ + +#ifndef __WII_CRYPTO_H__ +#define __WII_CRYPTO_H__ + +#include "types.h" +#include "wii_tik.h" + +void get_common_key(u8 *key); + +void md5(u8 *data, u32 len, u8 *hash); +void sha(u8 *data, u32 len, u8 *hash); +void aes_cbc_dec(u8 *key, u8 *iv, u8 *in, u32 len, u8 *out); +void aes_cbc_enc(u8 *key, u8 *iv, u8 *in, u32 len, u8 *out); +void decrypt_title_key(wii_tik *tik, u8 *title_key); + +#endif -- cgit v1.1-32-gdbae