From 262e8bafd7e42ba0b92abeef9d09ec99ca0ed791 Mon Sep 17 00:00:00 2001 From: yutaka Date: Wed, 26 Mar 2008 08:11:17 +0000 Subject: [PATCH] =?UTF-8?q?FromFirm=E3=81=8B=E3=82=89NAND=E3=82=B3?= =?UTF-8?q?=E3=83=B3=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88=E5=89=8A=E9=99=A4?= 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@957 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- include/firm/format/from_brom.h | 7 ++----- include/firm/format/from_firm.h | 8 +++++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/include/firm/format/from_brom.h b/include/firm/format/from_brom.h index 0a0341db..bc586310 100644 --- a/include/firm/format/from_brom.h +++ b/include/firm/format/from_brom.h @@ -45,11 +45,8 @@ typedef struct SDportContextData SDPortContextData; /* - hash_table_hashは、ファームヘッダの署名の中に埋められた値(現状0xffで埋められている) - ファームブート後に追加データをメインメモリにロードする必要に駆られた場合、 - そのハッシュ値をmakenandfirm等で埋め込むようにすることで保護できる。 - (Static部分に埋めても大差ないと思われるが・・・) - 未使用の場合(現状)、0xffで埋められていることを確認すべき + hash_table_hashは、ファームヘッダの署名の中に埋められた値(現状0x00で埋められている) + 未使用の場合(現状)、0x00で埋められていることを確認すべき */ typedef struct { diff --git a/include/firm/format/from_firm.h b/include/firm/format/from_firm.h index d1bdd351..b82ff61c 100644 --- a/include/firm/format/from_firm.h +++ b/include/firm/format/from_firm.h @@ -18,7 +18,6 @@ #define FIRM_FORMAT_FROM_FIRM_H_ #include -#include #ifdef __cplusplus extern "C" { @@ -32,6 +31,11 @@ extern "C" { #define AESKEY_NUM_FROM_FIRM 4 #endif // SDK_ARM7 +/* + reservedは、ファームヘッダの署名の中に埋められた値(現状0x00で埋められている) + 未使用の場合(現状)、0x00で埋められていることを確認すべき +*/ + typedef struct { u8 rsa_pubkey[RSA_PUBKEY_NUM_FROM_FIRM][ACS_PUBKEY_LEN]; // 1KB @@ -50,8 +54,6 @@ typedef struct u8 reserved[ACS_HASH_LEN]; // 20B BLOWFISH_CTX twl_blowfish[2]; // (4KB + α) * 2 - - SDPortContextData SDNandContext; } OSFromFirm7Buf;