mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
9c548197c1
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
27 lines
423 B
C
27 lines
423 B
C
#pragma once
|
|
|
|
// Structs
|
|
typedef struct
|
|
{
|
|
u8 hdrSize[4];
|
|
u8 type[2];
|
|
u8 version[2];
|
|
u8 certChainSize[4];
|
|
u8 tikSize[4];
|
|
u8 tmdSize[4];
|
|
u8 metaSize[4];
|
|
u8 contentSize[8];
|
|
u8 contentIndex[0x2000];
|
|
} cia_hdr;
|
|
|
|
typedef struct
|
|
{
|
|
u8 dependencyList[0x30*0x8];
|
|
u8 padding0[0x180];
|
|
u8 coreVersion[4];
|
|
u8 padding1[0xfc];
|
|
} cia_metadata;
|
|
|
|
int CryptContent(u8 *enc, u8 *dec, u64 size, u8 *title_key, u16 index, u8 mode);
|
|
|