Various refactoring and addition of comments

This commit is contained in:
CTCaer committed 2020-12-11 17:25:59 +02:00
1 parent 8249d9e1a2
commit 5b8fb9fb6b
19 files changed
+99 -85

No files matched your search

-4
View File
@@ -286,10 +286,6 @@ void hos_eks_save(u32 kb)
u8 *keys = (u8 *)calloc(0x1000, 1);
se_get_aes_keys(keys + 0x800, keys, 0x10);
// Set SBK back.
if (FUSE(FUSE_PRIVATE_KEY0) == 0xFFFFFFFF)
se_aes_key_set(14, keys + 14 * 0x10, 0x10);
// Set magic and personalized info.
h_cfg.eks->magic = HOS_EKS_MAGIC;
h_cfg.eks->enabled[key_idx] = kb;