summaryrefslogtreecommitdiffstats
path: root/crypto.h
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-03-18 20:52:11 +0100
committerGravatar Martin Szulecki2009-03-18 20:52:11 +0100
commit9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989 (patch)
tree38aa36327c9e3c0fef1ef7ee77c707d987aff9d0 /crypto.h
downloadwiiwadtools-9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989.tar.gz
wiiwadtools-9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989.tar.bz2
Initial commit of sources
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h19
1 files changed, 19 insertions, 0 deletions
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