From 0a06f7b8ad06457123c66664e440a09e8770bcf4 Mon Sep 17 00:00:00 2001 From: yutaka Date: Mon, 25 Feb 2008 02:36:51 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A1=E3=83=BC=E3=83=A0=E6=9A=97?= =?UTF-8?q?=E5=8F=B7=E5=8C=96=E7=94=A8=E3=81=AE=E9=8D=B5=E3=82=92=E9=96=93?= =?UTF-8?q?=E9=81=95=E3=81=88=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@731 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- include/firm/aes/ARM7/aes_init.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/firm/aes/ARM7/aes_init.h b/include/firm/aes/ARM7/aes_init.h index 6295f9b4..d1c5ca5a 100644 --- a/include/firm/aes/ARM7/aes_init.h +++ b/include/firm/aes/ARM7/aes_init.h @@ -52,20 +52,20 @@ void AESi_InitKeysForApp( u8 game_code[4] ); void AESi_InitKeysForHard( u8 fuse[8] ); /*---------------------------------------------------------------------------* - Name: AESi_ResetAesKeyB + Name: AESi_ResetAesKeyC - Description: set SEED/ID/KEYs filler data without slot-D + Description: set SEED/ID/KEYs filler data for slot-C Arguments: None Returns: None *---------------------------------------------------------------------------*/ -static inline void AESi_ResetAesKeyB( void ) +static inline void AESi_ResetAesKeyC( void ) { AES_Lock(); AES_WaitKey(); - MI_CpuCopy32( (u32*)AESi_ResetAesKeyB, (u32*)REG_AES_KEY_B0_ADDR+1, 40 ); + MI_CpuCopy32( (u32*)AESi_ResetAesKeyC, (u32*)REG_AES_KEY_C1_ADDR, 40 ); AES_Unlock(); } @@ -84,9 +84,9 @@ static inline void AESi_ResetAesKey( void ) AES_Lock(); AES_WaitKey(); - MI_CpuCopy32( (u32*)AESi_ResetAesKey, (u32*)REG_AES_KEY_A0_ADDR+1, 40 ); - MI_CpuCopy32( (u32*)AESi_ResetAesKey+10, (u32*)REG_AES_KEY_B0_ADDR+1, 40 ); - MI_CpuCopy32( (u32*)AESi_ResetAesKey+20, (u32*)REG_AES_KEY_C0_ADDR+1, 40 ); + MI_CpuCopy32( (u32*)AESi_ResetAesKey, (u32*)REG_AES_KEY_A1_ADDR, 40 ); + MI_CpuCopy32( (u32*)AESi_ResetAesKey+10, (u32*)REG_AES_KEY_B1_ADDR, 40 ); + MI_CpuCopy32( (u32*)AESi_ResetAesKey+20, (u32*)REG_AES_KEY_C1_ADDR, 40 ); AES_Unlock(); } @@ -104,7 +104,7 @@ static inline void AESi_ResetAesKey( void ) static inline void AESi_InitKeysFIRM( void ) { AESi_InitKeysForApp( (u8*)((ROM_Header_Short*)HW_TWL_ROM_HEADER_BUF)->game_code ); - AESi_ResetAesKeyB(); + AESi_ResetAesKeyC(); // AESi_ResetAesKey(); }