mirror of
https://github.com/jakcron/nstool
synced 2024-11-14 17:56:39 +00:00
[nx] Add proper padding to nx::sKeyDataArea (xci)
This commit is contained in:
parent
af35e0410d
commit
4d537956f0
1 changed files with 5 additions and 3 deletions
|
@ -115,9 +115,11 @@ namespace nx
|
|||
struct sKeyDataArea
|
||||
{
|
||||
sInitialData initial_data; // AES128-CCM encrypted {titlekey[16]}
|
||||
byte_t encrypted_00[0x200*6]; // AES128-CTR encrypted {titlekey[16]}
|
||||
byte_t encrypted_00_aesctr_data[0x100]; // RSA2048-OAEP-SHA256 encrypted AES-CTR data used for encrypted_00 {key[16],iv[16]}
|
||||
byte_t reserved_01[0x100];
|
||||
byte_t reserved_00[xci::kPageSize - sizeof(sInitialData)];
|
||||
byte_t encrypted_00[xci::kPageSize * 6]; // AES128-CTR encrypted {titlekey[16]}
|
||||
byte_t encrypted_00_aesctr_data[crypto::rsa::kRsa2048Size]; // RSA2048-OAEP-SHA256 encrypted AES-CTR data used for encrypted_00 {key[16],iv[16]}
|
||||
byte_t reserved_01[xci::kPageSize - crypto::rsa::kRsa2048Size];
|
||||
}; // sizeof() = 512*8 (8 pages)
|
||||
|
||||
#pragma pack(pop)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue