1
0
Fork 0
mirror of https://github.com/Scandal-UK/Incognito_RCM.git synced 2024-09-19 21:53:27 +01:00

encrypting working (per sector)

This commit is contained in:
jimzrt 2019-09-27 09:36:00 +02:00
parent 8c9ac3713f
commit 251477c46c
2 changed files with 5 additions and 5 deletions

View file

@ -419,12 +419,12 @@ void dump_keys() {
gfx_hexdump(0, tmp_dec, 0x100); gfx_hexdump(0, tmp_dec, 0x100);
//disk_write_prod(tmp_dec, 1, 1); disk_write_prod(tmp_dec, 1, 1);
//gfx_hexdump(0, tmp_dec, 0x100); gfx_hexdump(0, tmp_dec, 0x100);
se_aes_xts_crypt_sec(9, 8, 1, 1, tmp, tmp_dec, NX_EMMC_BLOCKSIZE); //se_aes_xts_crypt_sec(9, 8, 1, 1, tmp, tmp_dec, NX_EMMC_BLOCKSIZE);
gfx_hexdump(0, tmp, 0x100); //gfx_hexdump(0, tmp, 0x100);

View file

@ -196,7 +196,7 @@ DRESULT disk_write_prod (
} }
// fatfs will never pull more than a cluster // fatfs will never pull more than a cluster
_emmc_xts(9, 8, 0, tweak, regen_tweak, tweak_exp, prev_cluster, buff, buff, count * 0x200); _emmc_xts(9, 8, 1, tweak, regen_tweak, tweak_exp, prev_cluster, buff, buff, count * 0x200);
prev_sector = sector + count - 1; prev_sector = sector + count - 1;
return RES_OK; return RES_OK;