From f91c26d752fd64391136f828ea9b5f50acfb1be5 Mon Sep 17 00:00:00 2001 From: Aurora Date: Mon, 19 Sep 2016 18:06:46 +0200 Subject: [PATCH] Forgot this --- source/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/crypto.c b/source/crypto.c index 996b629..3a49f4d 100755 --- a/source/crypto.c +++ b/source/crypto.c @@ -389,7 +389,7 @@ void decryptNusFirm(u8 *inbuf, u8 *outbuf, u32 ncchSize) aes_use_keyslot(0x3D); aes(titleKey, titleKey, 1, cetkIv, AES_CBC_DECRYPT_MODE, AES_INPUT_BE | AES_INPUT_NORMAL); - u8 ncchIv[AES_BLOCK_SIZE] = {0}; + u8 __attribute__((aligned(4))) ncchIv[AES_BLOCK_SIZE] = {0}; aes_setkey(0x16, titleKey, AES_KEYNORMAL, AES_INPUT_BE | AES_INPUT_NORMAL); aes_use_keyslot(0x16);