hekate/nyx: update sha calls based on new bdk

This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 09:59:42 +01:00
1 parent a258c726dc
commit 0cd9a5c80e
5 files changed
+12 -11

No files matched your search

+4 -3
View File
@@ -229,7 +229,8 @@ static int _emmc_sd_copy_verify(emmc_tool_gui_t *gui, sdmmc_storage_t *storage,
return VERIF_STATUS_ERROR;
}
manual_system_maintenance(false);
se_calc_sha256(hashEm, NULL, bufEm, num << 9, 0, SHA_INIT_HASH, false);
se_sha_hash_256_async(hashEm, bufEm, num << 9);
f_lseek(&fp, (u64)sdFileSector << (u64)9);
if (f_read_fast(&fp, bufSd, num << 9))
@@ -249,8 +250,8 @@ static int _emmc_sd_copy_verify(emmc_tool_gui_t *gui, sdmmc_storage_t *storage,
return VERIF_STATUS_ERROR;
}
manual_system_maintenance(false);
se_calc_sha256_finalize(hashEm, NULL);
se_calc_sha256_oneshot(hashSd, bufSd, num << 9);
se_sha_hash_256_finalize(hashEm);
se_sha_hash_256_oneshot(hashSd, bufSd, num << 9);
res = memcmp(hashEm, hashSd, SE_SHA_256_SIZE / 2);
if (res)