From 97810335ed1251e3504163ee3e5ef8ce569e5463 Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Sat, 9 May 2020 00:26:02 +0200 Subject: [PATCH] fix a bug that basically has no effect thanks shchmue for pointing that out :smug: --- source/libs/fatfs/diskio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;