mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
RSA処理部修正
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@23 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
parent
f233d5981e
commit
4ae224dc01
@ -147,6 +147,7 @@
|
||||
//---------------------------------------------------
|
||||
// HSMの処理結果によるエラーコード
|
||||
//---------------------------------------------------
|
||||
#define CR_GENID_ERROR_HSM_UNKNOWN_ID ( 4) // 鍵のIDが不正な値である
|
||||
#define CR_GENID_ERROR_HSM_BAD_CERTKEYHASH ( 9) // 証明書のハッシュが正しくない
|
||||
#define CR_GENID_ERROR_HSM_BAD_CERTSIGN ( 10) // 証明書の署名が正しくない
|
||||
#define CR_GENID_ERROR_HSM_CERTVERIFY_FAILED ( 11) // 署名の検証に失敗した
|
||||
|
||||
@ -381,7 +381,6 @@ int hsm_aes_encrypt( unsigned char *dst_buf, unsigned char *org_buf, int size )
|
||||
// iv set
|
||||
enc_iv.mech = Mech_RijndaelmCBCpNONE;
|
||||
memset( enc_iv.iv.generic128.iv.bytes, 0, sizeof( enc_iv.iv.generic128.iv.bytes ) );
|
||||
printf( "enc_iv.---.bytes : %d bytes\n", sizeof( enc_iv.iv.generic128.iv.bytes ) );
|
||||
|
||||
// encrypt command set
|
||||
cmd.cmd = Cmd_Encrypt;
|
||||
@ -430,7 +429,6 @@ int hsm_aes_decrypt( unsigned char *dst_buf, unsigned char *org_buf, int size )
|
||||
// iv set
|
||||
dec_iv.mech = Mech_RijndaelmCBCpNONE;
|
||||
memset( dec_iv.iv.generic128.iv.bytes, 0, sizeof( dec_iv.iv.generic128.iv.bytes ) );
|
||||
printf( "dec_iv.---.bytes : %d bytes\n", sizeof( dec_iv.iv.generic128.iv.bytes ) );
|
||||
|
||||
// decyrpt
|
||||
cmd.cmd = Cmd_Decrypt;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user