diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-07-02 21:51:01 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-07-21 17:42:59 +0800 |
| commit | 05016e8dcac8b8b7177b72bffe34c96dfd4a5df0 (patch) | |
| tree | 177a4703622d4d59745418727093f176ba5fbe92 /Source | |
| parent | 5b09657a1fee073d6290105fefcf538b10b05fd6 (diff) | |
EcWii: Add function to get the backup key
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/ec_wii.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/Core/ec_wii.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/Core/ec_wii.cpp b/Source/Core/Core/ec_wii.cpp index 28ffd0dabd..6411852403 100644 --- a/Source/Core/Core/ec_wii.cpp +++ b/Source/Core/Core/ec_wii.cpp @@ -181,6 +181,11 @@ const u8* EcWii::GetNGSig() const return BootMiiKeysBin.ng_sig; } +const u8* EcWii::GetBackupKey() const +{ + return BootMiiKeysBin.backup_key; +} + void EcWii::InitDefaults() { memset(&BootMiiKeysBin, 0, sizeof(BootMiiKeysBin)); diff --git a/Source/Core/Core/ec_wii.h b/Source/Core/Core/ec_wii.h index eb4395a9a7..2a9ec003a8 100644 --- a/Source/Core/Core/ec_wii.h +++ b/Source/Core/Core/ec_wii.h @@ -42,6 +42,7 @@ public: u32 GetNGKeyID() const; const u8* GetNGPriv() const; const u8* GetNGSig() const; + const u8* GetBackupKey() const; private: void InitDefaults(); @@ -82,7 +83,7 @@ private: }; }; u8 nand_key[0x10]; // 0x158 - u8 rng_key[0x10]; // 0x168 + u8 backup_key[0x10]; // 0x168 u32 unk1; // 0x178 u32 unk2; // 0x17C u8 eeprom_pad[0x80]; // 0x180 |
