big update

lots cleaned, added cia to cci conv, it
's called a block, separated reading from building, improved ncch keyx
stuff, and basic verbose for keys, elf checking and romfs
This commit is contained in:
applestash
2014-08-26 00:34:28 +10:00
parent c6e98ca578
commit 9c548197c1
66 changed files with 2970 additions and 2551 deletions
+12 -7
View File
@@ -1,5 +1,12 @@
#pragma once
typedef enum
{
AES_128_KEY_SIZE = 16,
MAX_CMN_KEY = MAX_U8,
MAX_NCCH_KEYX = MAX_U8
} keydata_limits;
typedef enum
{
KEYSET_ERROR = -10,
@@ -54,11 +61,10 @@ typedef struct
// NCCH Keys
u8 *normalKey;
u8 *systemFixedKey;
u8 *ncchKeyX0;
u8 *ncchKeyX1;
u8 *unFixedKey0;
u8 *unFixedKey1;
u8 **ncchKeyX;
u8 *ncchKey0;
u8 *ncchKey1;
} aes;
struct
@@ -101,5 +107,4 @@ int SetCurrentCommonKey(keys_struct *keys, u8 Index);
int SetNormalKey(keys_struct *keys, u8 *systemFixedKey);
int SetSystemFixedKey(keys_struct *keys, u8 *systemFixedKey);
int SetNcchUnfixedKeys(keys_struct *keys, u8 *ncchSig);
u8* AesKeyScrambler(u8 *key, u8 *keyX, u8 *keyY);