hos: no need to double check allocated eks

This commit is contained in:
CTCaer 2024-10-04 22:09:54 +03:00
parent 7b60c3d162
commit 66454b934c
2 changed files with 2 additions and 2 deletions

View file

@ -381,7 +381,7 @@ int hos_keygen(void *keyblob, u32 kb, tsec_ctxt_t *tsec_ctxt, bool stock, bool i
_hos_eks_get(); _hos_eks_get();
// Use tsec keygen for old firmware or if EKS keys does not exist for newer. // Use tsec keygen for old firmware or if EKS keys does not exist for newer.
if (kb <= HOS_KB_VERSION_620 || !h_cfg.eks || (h_cfg.eks && h_cfg.eks->enabled != HOS_EKS_TSEC_VER)) if (kb <= HOS_KB_VERSION_620 || !h_cfg.eks || (h_cfg.eks->enabled != HOS_EKS_TSEC_VER))
use_tsec = true; use_tsec = true;
if (kb <= HOS_KB_VERSION_600) if (kb <= HOS_KB_VERSION_600)

View file

@ -363,7 +363,7 @@ int hos_keygen(void *keyblob, u32 kb, tsec_ctxt_t *tsec_ctxt)
_hos_eks_get(); _hos_eks_get();
// Use tsec keygen for old firmware or if EKS keys does not exist for newer. // Use tsec keygen for old firmware or if EKS keys does not exist for newer.
if (kb <= HOS_KB_VERSION_620 || !h_cfg.eks || (h_cfg.eks && h_cfg.eks->enabled != HOS_EKS_TSEC_VER)) if (kb <= HOS_KB_VERSION_620 || !h_cfg.eks || (h_cfg.eks->enabled != HOS_EKS_TSEC_VER))
use_tsec = true; use_tsec = true;
if (kb <= HOS_KB_VERSION_600) if (kb <= HOS_KB_VERSION_600)