mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-12 15:38:59 +01:00
Double hash was not needed.
Use current keys.
This commit is contained in:
parent
ca4ea817e0
commit
ed9ef874e5
@ -888,7 +888,7 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress)
|
|||||||
u8 *sig_out = Memory::GetPointer(Buffer.PayloadBuffer[0].m_Address);
|
u8 *sig_out = Memory::GetPointer(Buffer.PayloadBuffer[0].m_Address);
|
||||||
|
|
||||||
|
|
||||||
get_ap_sig_and_cert(sig_out, ap_cert_out, m_TitleID, data, data_size, NULL, 0);
|
get_ap_sig_and_cert(sig_out, ap_cert_out, m_TitleID, data, data_size, key_ecc, GetHollywoodID());
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -93,10 +93,7 @@ void get_ap_sig_and_cert(u8 *sig_out, u8 *ap_cert_out, u64 title_id, u8 *data, u
|
|||||||
sha1(ap_cert_out + 0x80, 0x100, hash);
|
sha1(ap_cert_out + 0x80, 0x100, hash);
|
||||||
generate_ecdsa(ap_cert_out+4, ap_cert_out+34, NG_priv, hash);
|
generate_ecdsa(ap_cert_out+4, ap_cert_out+34, NG_priv, hash);
|
||||||
|
|
||||||
|
|
||||||
sha1(data, data_size, hash);
|
sha1(data, data_size, hash);
|
||||||
sha1(hash, 20, hash);
|
|
||||||
|
|
||||||
generate_ecdsa(sig_out, sig_out + 30, ap_priv, hash);
|
generate_ecdsa(sig_out, sig_out + 30, ap_priv, hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user