mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
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:
parent
262a241910
commit
b711327bfa
@ -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
|
||||
|
||||
@ -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の処理結果によるエラーコード
|
||||
|
||||
Loading…
Reference in New Issue
Block a user