diff --git a/source/arm9/crypto.c b/source/arm9/crypto.c index 9507e79..1776430 100644 --- a/source/arm9/crypto.c +++ b/source/arm9/crypto.c @@ -491,21 +491,7 @@ if(enc) { - // The MAC output order is the opposite of the setup order. AES engine bug? - if(aesParams>>22 & AES_OUTPUT_NORMAL) - { - for(u32 i = 0; i < macSize / 4; i++) - { - mac[i] = *((vu32*)REG_AESRDFIFO); - } - } - else - { - for(u32 i = 0; i < macSize / 4; i++) - { - mac[macSize / 4 - 1 - i] = *((vu32*)REG_AESRDFIFO); - } - } + for(u32 i = 0; i < macSize / 4; i++) mac[i] = *((vu32*)REG_AESRDFIFO); } if(enc) return true;