[makerom] Updated NCSD spec, as per 3dbrew.org contributor research.

This commit is contained in:
jakcron
2015-10-24 13:50:05 +08:00
parent 3702b58db3
commit 3f3418e840
2 changed files with 33 additions and 25 deletions
+7 -13
View File
@@ -17,10 +17,11 @@ typedef struct
u8 writableAddress[4];
u8 cardInfoBitmask[4];
cardinfo_notes notes;
u8 ncch0TitleId[8];
u8 reserved0[8];
u8 initialData[0x30];
u8 reserved1[0xc0];
u8 cardSeedKeyY[0x10];
u8 encCardSeed[0x10];
u8 cardSeedMac[0x10];
u8 cardSeedNonce[0xc];
u8 reserved1[0xc4];
u8 ncch0Hdr[0x100];
} cardinfo_hdr;
@@ -31,16 +32,9 @@ typedef struct
u8 cardDeviceReserved2[0xf0];
} devcardinfo_hdr;
static const u8 stock_initial_data[0x30] =
static const u8 stock_card_seed_mac[0x30] =
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xAD, 0x88,
0xAC, 0x41, 0xA2, 0xB1, 0x5E, 0x8F,
0x66, 0x9C, 0x97, 0xE5, 0xE1, 0x5E,
0xA3, 0xEB, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
0xAD, 0x88, 0xAC, 0x41, 0xA2, 0xB1, 0x5E, 0x8F, 0x66, 0x9C, 0x97, 0xE5, 0xE1, 0x5E, 0xA3, 0xEB
};
static const u8 stock_title_key[0x10] =