From 090a5722806439863c70157c65e714f34a3487ae Mon Sep 17 00:00:00 2001 From: yutaka Date: Tue, 11 Dec 2007 08:39:19 +0000 Subject: [PATCH] =?UTF-8?q?=E9=8D=B5=E8=A8=AD=E5=AE=9A=E5=91=A8=E3=82=8A?= =?UTF-8?q?=E3=82=92=E5=88=86=E5=89=B2=E6=95=B4=E7=90=86?= 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@341 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- include/firm/aes/ARM7/aes_init.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/firm/aes/ARM7/aes_init.h b/include/firm/aes/ARM7/aes_init.h index aab67345..dd6df55c 100644 --- a/include/firm/aes/ARM7/aes_init.h +++ b/include/firm/aes/ARM7/aes_init.h @@ -39,6 +39,29 @@ extern "C" { *---------------------------------------------------------------------------*/ void AESi_InitKeysForApp( u8 game_code[4] ); +/*---------------------------------------------------------------------------* + Name: AESi_InitKeysForHard + + Description: set IDs depending on the system hardware. + you SHOULD NOT use this for standard applications. + + Arguments: fuse camouflaged fuse id + + Returns: None + *---------------------------------------------------------------------------*/ +void AESi_InitKeysForHard( u8 fuse[8] ); + +/*---------------------------------------------------------------------------* + Name: AESi_ResetAesKey + + Description: set SEED/KEYs by dummy data without seed[3] + + Arguments: None + + Returns: None + *---------------------------------------------------------------------------*/ +void AESi_ResetAesKey( void ); + /*---------------------------------------------------------------------------* Name: AESi_InitKeysFIRM @@ -52,6 +75,7 @@ void AESi_InitKeysForApp( u8 game_code[4] ); static inline void AESi_InitKeysFIRM( void ) { AESi_InitKeysForApp( (u8*)((ROM_Header_Short*)HW_TWL_ROM_HEADER_BUF)->game_code ); + AESi_ResetAesKey(); } /*---------------------------------------------------------------------------*