[nx] Define sNcaHeaderBlock

This commit is contained in:
jakcron 2018-04-25 22:58:45 +08:00
parent 8ad7edecda
commit 97ccc628ce

View file

@ -88,7 +88,7 @@ namespace nx
char signature[4]; char signature[4];
byte_t distribution_type; byte_t distribution_type;
byte_t content_type; byte_t content_type;
byte_t key_generation; // KeyGeneration byte_t key_generation;
byte_t key_area_encryption_key_index; byte_t key_area_encryption_key_index;
le_uint64_t content_size; le_uint64_t content_size;
le_uint64_t program_id; le_uint64_t program_id;
@ -108,6 +108,14 @@ namespace nx
crypto::aes::sAes128Key enc_aes_key[nca::kAesKeyNum]; crypto::aes::sAes128Key enc_aes_key[nca::kAesKeyNum];
}; };
struct sNcaHeaderBlock
{
byte_t signature_main[crypto::rsa::kRsa2048Size];
byte_t signature_acid[crypto::rsa::kRsa2048Size];
sNcaHeader header;
byte_t fs_header[nx::nca::kPartitionNum][nx::nca::kSectorSize];
};
struct sNcaFsHeader struct sNcaFsHeader
{ {
le_uint16_t version; // usually 0x0002 le_uint16_t version; // usually 0x0002