Files
Project_CTR/makerom/cia.h
T
applestash 9c548197c1 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
2014-08-26 00:34:28 +10:00

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);