diff --git a/source/libs/fatfs/diskio.c b/source/libs/fatfs/diskio.c index 7f83019..62d8373 100644 --- a/source/libs/fatfs/diskio.c +++ b/source/libs/fatfs/diskio.c @@ -108,7 +108,7 @@ static inline int _emmc_xts(u32 ks1, u32 ks2, u32 enc, u8 *tweak, bool regen_twe pdst += 0x10; } - se_aes_crypt_ecb(ks2, enc, dst, secsize, src, secsize); + se_aes_crypt_ecb(ks2, enc, dst, secsize, dst, secsize); pdst = (u8 *)dst;