Add option to configure to download system files from Nintendo Update Service (#6269)

Co-authored-by: B3n30 <benediktthomas@gmail.com>
This commit is contained in:
Steveice10
2023-02-09 11:58:08 -08:00
committed by GitHub
parent 691cb43871
commit 6bef34852c
16 changed files with 1076 additions and 10 deletions

View File

@@ -48,11 +48,13 @@ enum KeySlotID : std::size_t {
MaxKeySlotID = 0x40,
};
constexpr std::size_t MaxCommonKeySlot = 6;
constexpr std::size_t AES_BLOCK_SIZE = 16;
using AESKey = std::array<u8, AES_BLOCK_SIZE>;
void InitKeys();
void InitKeys(bool force = false);
void SetGeneratorConstant(const AESKey& key);
void SetKeyX(std::size_t slot_id, const AESKey& key);