diff --git a/source/keys/keys.c b/source/keys/keys.c index 2285a2d..90a5b83 100644 --- a/source/keys/keys.c +++ b/source/keys/keys.c @@ -419,12 +419,12 @@ void dump_keys() { gfx_hexdump(0, tmp_dec, 0x100); - //disk_write_prod(tmp_dec, 1, 1); - //gfx_hexdump(0, tmp_dec, 0x100); + disk_write_prod(tmp_dec, 1, 1); + 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); diff --git a/source/libs/fatfs/diskio.c b/source/libs/fatfs/diskio.c index 892e921..3f8e286 100644 --- a/source/libs/fatfs/diskio.c +++ b/source/libs/fatfs/diskio.c @@ -196,7 +196,7 @@ DRESULT disk_write_prod ( } // 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; return RES_OK;