マスタエディタ:AESのチェック処理を追加。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2552 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
nishikawa_takeshi 2008-09-25 12:50:09 +00:00
parent 21a22bd1f7
commit e58c77907f
4 changed files with 19 additions and 0 deletions

View File

@ -1302,6 +1302,25 @@ ECSrlResult RCSrl::mrcTWL( FILE *fp )
"ROM Control Info.", "Mask ROM can be set. Please set One-time PROM.", false, true ) );
}
if( *this->hIsMediaNand == false )
{
if( (this->pRomHeader->s.enable_aes == 0) || (this->pRomHeader->s.aes_target_size == 0) )
{
this->hErrorList->Add( gcnew RCMrcError(
"AES暗号", 0x60, 0x67, "AES暗号が無効になっています。セキュリティ上の問題があります。",
"AES Encryption", "AES Encryption is disable. It is a security problem.", false, true ) );
}
}
else // NANDアプリ
{
if( (this->pRomHeader->s.enable_aes == 0) || (this->pRomHeader->s.aes_target_size == 0) || (this->pRomHeader->s.aes_target2_size == 0) )
{
this->hErrorList->Add( gcnew RCMrcError(
"AES暗号", 0x60, 0x67, "AES暗号が無効になっています。セキュリティ上の問題があります。",
"AES Encryption", "AES Encryption is disable. It is a security problem.", false, true ) );
}
}
// —\–ñ—̈æ
System::Boolean bReserved = true;
for( i=0; i < 7; i++ )