mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
鍵選択をFIRM_USE_TWLSDK_KEYSと関連付け
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@427 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
393e1d5190
commit
2db35b1696
@ -16,6 +16,9 @@
|
|||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
#include <firm.h>
|
#include <firm.h>
|
||||||
|
|
||||||
|
#ifndef FIRM_USE_TWLSDK_KEYS
|
||||||
|
#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[2] // Œ®ŠÇ—<C387>.xlsŽQ<C5BD>Æ
|
||||||
|
#else
|
||||||
#define RSA_KEY_ADDR rsa_key
|
#define RSA_KEY_ADDR rsa_key
|
||||||
static const u8 rsa_key[128] =
|
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,
|
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
|
0xa1, 0x96, 0xc6, 0xf7, 0x61, 0x68, 0x66, 0xe6, 0x65, 0x12, 0xb7, 0xf1, 0x49
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#define RSA_HEAP_SIZE (4*1024) // RSA用ヒープサイズ (サイズ調整必要)
|
#define RSA_HEAP_SIZE (4*1024) // RSA用ヒープサイズ (サイズ調整必要)
|
||||||
|
|
||||||
|
|||||||
@ -16,9 +16,8 @@
|
|||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
#include <firm.h>
|
#include <firm.h>
|
||||||
|
|
||||||
/* 鍵はどこへ? */
|
#ifndef FIRM_USE_TWLSDK_KEYS
|
||||||
#if 0
|
#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[0] // Œ®ŠÇ—<C387>.xlsŽQ<C5BD>Æ
|
||||||
#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[7]
|
|
||||||
#else
|
#else
|
||||||
#define RSA_KEY_ADDR rsa_key
|
#define RSA_KEY_ADDR rsa_key
|
||||||
static const u8 rsa_key[128] =
|
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 u8 acHeap[RSA_HEAP_SIZE] __attribute__ ((aligned (32)));
|
||||||
static SVCSignHeapContext acPool;
|
static SVCSignHeapContext acPool;
|
||||||
|
|
||||||
#define MENU_TITLE_ID 0x000100014c4e4352ULL
|
#define MENU_TITLE_ID 0x000300074c4e4352ULL
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PROFILE_ENABLE を定義するとある程度のパフォーマンスチェックができます。
|
PROFILE_ENABLE を定義するとある程度のパフォーマンスチェックができます。
|
||||||
|
|||||||
@ -17,9 +17,8 @@
|
|||||||
#include <firm.h>
|
#include <firm.h>
|
||||||
#include <twl/aes.h>
|
#include <twl/aes.h>
|
||||||
|
|
||||||
/* 鍵はどこへ? */
|
#ifndef FIRM_USE_TWLSDK_KEYS
|
||||||
#if 0
|
#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[0] // Œ®ŠÇ—<C387>.xlsŽQ<C5BD>Æ
|
||||||
#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[7]
|
|
||||||
#else
|
#else
|
||||||
#define RSA_KEY_ADDR rsa_key
|
#define RSA_KEY_ADDR rsa_key
|
||||||
static const u8 rsa_key[128] =
|
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 u8 acHeap[RSA_HEAP_SIZE] __attribute__ ((aligned (32)));
|
||||||
static SVCSignHeapContext acPool;
|
static SVCSignHeapContext acPool;
|
||||||
|
|
||||||
#define MENU_TITLE_ID 0x000100014c4e4352ULL
|
#define MENU_TITLE_ID 0x000300074c4e4352ULL
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PROFILE_ENABLE を定義するとある程度のパフォーマンスチェックができます。
|
PROFILE_ENABLE を定義するとある程度のパフォーマンスチェックができます。
|
||||||
|
|||||||
@ -16,6 +16,9 @@
|
|||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
#include <firm.h>
|
#include <firm.h>
|
||||||
|
|
||||||
|
#ifndef FIRM_USE_TWLSDK_KEYS
|
||||||
|
#define RSA_KEY_ADDR OSi_GetFromFirmAddr()->rsa_pubkey[2] // Œ®ŠÇ—<C387>.xlsŽQ<C5BD>Æ
|
||||||
|
#else
|
||||||
#define RSA_KEY_ADDR rsa_key
|
#define RSA_KEY_ADDR rsa_key
|
||||||
static const u8 rsa_key[128] =
|
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,
|
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
|
0xa1, 0x96, 0xc6, 0xf7, 0x61, 0x68, 0x66, 0xe6, 0x65, 0x12, 0xb7, 0xf1, 0x49
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#define RSA_HEAP_SIZE (4*1024) // RSA用ヒープサイズ (サイズ調整必要)
|
#define RSA_HEAP_SIZE (4*1024) // RSA用ヒープサイズ (サイズ調整必要)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user