diff --git a/source/arm9/crypto.c b/source/arm9/crypto.c index 2c9e96c..0e2507e 100644 --- a/source/arm9/crypto.c +++ b/source/arm9/crypto.c @@ -178,8 +178,8 @@ else ctrIvNonceSize = 3; // All writes must finish before using DMA - //flushDCacheRange(in, size); - flushDCache(); + flushDCacheRange(in, size); + if(in != out) flushDCacheRange(out, size); // Save the original out pointer for later invalidation const u32 *savedOut = out;