mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
ec_wii: Move implementation details into cpp file
Gets rid of the need for an include in the header file.
This commit is contained in:
parent
66160c2781
commit
5b998ee9b0
@ -7,15 +7,17 @@
|
||||
// Licensed under the terms of the GNU GPL, version 2
|
||||
// http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
||||
|
||||
#include "Core/ec_wii.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <string.h>
|
||||
|
||||
#include <mbedtls/sha1.h>
|
||||
|
||||
#include "Common/CommonFuncs.h"
|
||||
#include "Common/Crypto/ec.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Core/ec_wii.h"
|
||||
|
||||
static u32 default_NG_id = 0x0403AC68;
|
||||
static u32 default_NG_key_id = 0x6AAB8C59;
|
||||
@ -158,6 +160,26 @@ EcWii::~EcWii()
|
||||
{
|
||||
}
|
||||
|
||||
u32 EcWii::getNgId()
|
||||
{
|
||||
return Common::swap32(BootMiiKeysBin.ng_id);
|
||||
}
|
||||
|
||||
u32 EcWii::getNgKeyId()
|
||||
{
|
||||
return Common::swap32(BootMiiKeysBin.ng_key_id);
|
||||
}
|
||||
|
||||
const u8* EcWii::getNgPriv()
|
||||
{
|
||||
return BootMiiKeysBin.ng_priv;
|
||||
}
|
||||
|
||||
const u8* EcWii::getNgSig()
|
||||
{
|
||||
return BootMiiKeysBin.ng_sig;
|
||||
}
|
||||
|
||||
void EcWii::InitDefaults()
|
||||
{
|
||||
memset(&BootMiiKeysBin, 0, sizeof(BootMiiKeysBin));
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Common/CommonFuncs.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
void get_ng_cert(u8* ng_cert_out, u32 NG_id, u32 NG_key_id, const u8* NG_priv, const u8* NG_sig);
|
||||
@ -40,10 +39,11 @@ public:
|
||||
EcWii();
|
||||
~EcWii();
|
||||
static EcWii& GetInstance();
|
||||
u32 getNgId() { return Common::swap32(BootMiiKeysBin.ng_id); }
|
||||
u32 getNgKeyId() { return Common::swap32(BootMiiKeysBin.ng_key_id); }
|
||||
const u8* getNgPriv() { return BootMiiKeysBin.ng_priv; }
|
||||
const u8* getNgSig() { return BootMiiKeysBin.ng_sig; }
|
||||
u32 getNgId();
|
||||
u32 getNgKeyId();
|
||||
const u8* getNgPriv();
|
||||
const u8* getNgSig();
|
||||
|
||||
private:
|
||||
void InitDefaults();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user