TODO:CR_GENID_ERROR_ECDSA_DECODEエラーコードを追加(cr_deviceCert.c:262)

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@51 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
kubodera_yuichi 2009-12-23 05:44:26 +00:00
parent 262a241910
commit b711327bfa
2 changed files with 3 additions and 2 deletions

View File

@ -259,8 +259,7 @@ int GenerateCTRDeviceCert( EC_KEY *pECkey, u32 deviceId, u8 bondingOption, u8 *p
// DERデコードして、r と s を eccSignature にセット
sig = d2i_ECDSA_SIG( NULL, &pECDSAsig, signLen );
if( sig == NULL ) {
// TODO: エラーコードを決める
ret_code = 255;
ret_code = CR_GENID_ERROR_ECDSA_DECODE;
goto end;
}
#if 0

View File

@ -118,6 +118,7 @@
//---------------------------------------------------
// OpenSSLの処理結果によるエラーコード
//---------------------------------------------------
// TODO : 種類毎にソートする必要あり
#define CR_GENID_ERROR_RSA_ENC ( -1)
#define CR_GENID_ERROR_RSA_DEC ( -2)
#define CR_GENID_ERROR_RSA_VERIFY ( -3)
@ -144,6 +145,7 @@
#define CR_GENID_ERROR_AES_VERIFY (-24)
#define CR_GENID_ERROR_CERT_BUF_SIZE (-25)
#define CR_GENID_ERROR_ECC_READ_PRIVATE_KEY (-26)
#define CR_GENID_ERROR_ECDSA_DECODE (-27)
//---------------------------------------------------
// HSMの処理結果によるエラーコード