hekate/nyx: update sha calls based on new bdk

This commit is contained in:
CTCaer
2026-01-06 22:59:53 +02:00
committed by NaGa
parent a258c726dc
commit 0cd9a5c80e
5 changed files with 12 additions and 11 deletions

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)