mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 18:55:29 +00:00
[nx] Define sNcaHeaderBlock
This commit is contained in:
parent
8ad7edecda
commit
97ccc628ce
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue