diff --git a/build/gcdfirm/sdmc-launcher/ARM9/main.c b/build/gcdfirm/sdmc-launcher/ARM9/main.c index 0138a814..b64d5c3a 100644 --- a/build/gcdfirm/sdmc-launcher/ARM9/main.c +++ b/build/gcdfirm/sdmc-launcher/ARM9/main.c @@ -16,6 +16,9 @@ *---------------------------------------------------------------------------*/ #include +#ifndef FIRM_USE_TWLSDK_KEYS +#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[2] // 鍵管理.xls参照 +#else #define RSA_KEY_ADDR rsa_key static const u8 rsa_key[128] = { @@ -29,6 +32,7 @@ static const u8 rsa_key[128] = 0xe0, 0x6d, 0x21, 0x00, 0xcd, 0x42, 0xd8, 0x84, 0x85, 0xe3, 0xb2, 0x02, 0x1a, 0xa5, 0x89, 0x02, 0xa1, 0x96, 0xc6, 0xf7, 0x61, 0x68, 0x66, 0xe6, 0x65, 0x12, 0xb7, 0xf1, 0x49 }; +#endif #define RSA_HEAP_SIZE (4*1024) // RSA用ヒープサイズ (サイズ調整必要) diff --git a/build/nandfirm/menu-launcher/ARM9/main.c b/build/nandfirm/menu-launcher/ARM9/main.c index 9648c1a1..bd2faf25 100644 --- a/build/nandfirm/menu-launcher/ARM9/main.c +++ b/build/nandfirm/menu-launcher/ARM9/main.c @@ -16,9 +16,8 @@ *---------------------------------------------------------------------------*/ #include -/* 鍵はどこへ? */ -#if 0 -#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[7] +#ifndef FIRM_USE_TWLSDK_KEYS +#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[0] // 鍵管理.xls参照 #else #define RSA_KEY_ADDR rsa_key static const u8 rsa_key[128] = @@ -40,7 +39,7 @@ static const u8 rsa_key[128] = static u8 acHeap[RSA_HEAP_SIZE] __attribute__ ((aligned (32))); static SVCSignHeapContext acPool; -#define MENU_TITLE_ID 0x000100014c4e4352ULL +#define MENU_TITLE_ID 0x000300074c4e4352ULL /* PROFILE_ENABLE を定義するとある程度のパフォーマンスチェックができます。 diff --git a/build/nandfirm/menu-launcher2/ARM9/main.c b/build/nandfirm/menu-launcher2/ARM9/main.c index 759c7028..5f838097 100644 --- a/build/nandfirm/menu-launcher2/ARM9/main.c +++ b/build/nandfirm/menu-launcher2/ARM9/main.c @@ -17,9 +17,8 @@ #include #include -/* 鍵はどこへ? */ -#if 0 -#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[7] +#ifndef FIRM_USE_TWLSDK_KEYS +#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[0] // 鍵管理.xls参照 #else #define RSA_KEY_ADDR rsa_key static const u8 rsa_key[128] = @@ -41,7 +40,7 @@ static const u8 rsa_key[128] = static u8 acHeap[RSA_HEAP_SIZE] __attribute__ ((aligned (32))); static SVCSignHeapContext acPool; -#define MENU_TITLE_ID 0x000100014c4e4352ULL +#define MENU_TITLE_ID 0x000300074c4e4352ULL /* PROFILE_ENABLE を定義するとある程度のパフォーマンスチェックができます。 diff --git a/build/nandfirm/sdmc-launcher/ARM9/main.c b/build/nandfirm/sdmc-launcher/ARM9/main.c index 0138a814..b64d5c3a 100644 --- a/build/nandfirm/sdmc-launcher/ARM9/main.c +++ b/build/nandfirm/sdmc-launcher/ARM9/main.c @@ -16,6 +16,9 @@ *---------------------------------------------------------------------------*/ #include +#ifndef FIRM_USE_TWLSDK_KEYS +#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[2] // 鍵管理.xls参照 +#else #define RSA_KEY_ADDR rsa_key static const u8 rsa_key[128] = { @@ -29,6 +32,7 @@ static const u8 rsa_key[128] = 0xe0, 0x6d, 0x21, 0x00, 0xcd, 0x42, 0xd8, 0x84, 0x85, 0xe3, 0xb2, 0x02, 0x1a, 0xa5, 0x89, 0x02, 0xa1, 0x96, 0xc6, 0xf7, 0x61, 0x68, 0x66, 0xe6, 0x65, 0x12, 0xb7, 0xf1, 0x49 }; +#endif #define RSA_HEAP_SIZE (4*1024) // RSA用ヒープサイズ (サイズ調整必要)