mirror of
https://github.com/Scandal-UK/Incognito_RCM.git
synced 2024-11-09 21:51:46 +00:00
encrypting working (per sector)
This commit is contained in:
parent
8c9ac3713f
commit
251477c46c
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue