1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 03:32:17 +00:00

eks: Disallow on Mariko

This commit is contained in:
CTCaer 2020-07-04 21:21:48 +03:00
parent 5ffbbf40a5
commit 8880dfab24
2 changed files with 36 additions and 0 deletions

View file

@ -217,6 +217,10 @@ bool hos_eks_rw_try(u8 *buf, bool write)
void hos_eks_get()
{
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
// Check if EKS already found and parsed.
if (!h_cfg.eks)
{
@ -244,6 +248,10 @@ out:
void hos_eks_save(u32 kb)
{
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
if (kb >= KB_FIRMWARE_VERSION_700)
{
u32 key_idx = 0;
@ -322,6 +330,10 @@ out:
void hos_eks_clear(u32 kb)
{
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
if (h_cfg.eks && kb >= KB_FIRMWARE_VERSION_700)
{
u32 key_idx = 0;

View file

@ -162,6 +162,10 @@ bool hos_eks_rw_try(u8 *buf, bool write)
void hos_eks_get()
{
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
// Check if EKS already found and parsed.
if (!h_cfg.eks)
{
@ -189,6 +193,10 @@ out:
void hos_eks_save(u32 kb)
{
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
if (kb >= KB_FIRMWARE_VERSION_700)
{
u32 key_idx = 0;
@ -267,6 +275,10 @@ out:
void hos_eks_clear(u32 kb)
{
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
if (h_cfg.eks && kb >= KB_FIRMWARE_VERSION_700)
{
u32 key_idx = 0;
@ -305,6 +317,10 @@ out:
void hos_eks_bis_save()
{
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
bool new_eks = false;
if (!h_cfg.eks)
{
@ -361,6 +377,10 @@ out:
void hos_eks_bis_clear()
{
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
// Check if BIS keys are enabled.
if (h_cfg.eks && h_cfg.eks->enabled_bis)
{
@ -693,6 +713,10 @@ void hos_bis_keys_clear()
for (u32 i = 0; i < 6; i++)
se_aes_key_clear(i);
// Check if Erista based unit.
if (h_cfg.t210b01)
return;
// Set SBK back.
if (!h_cfg.sbk_set)
{