mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
r63のビルドを通す
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@64 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
parent
95b38c32fb
commit
d330817727
@ -134,8 +134,6 @@
|
|||||||
NFast_AppHandle hsmHandle;
|
NFast_AppHandle hsmHandle;
|
||||||
NFastApp_Connection hsmConnection;
|
NFastApp_Connection hsmConnection;
|
||||||
NFKM_WorldInfo *hsmWorld = NULL; // allocate
|
NFKM_WorldInfo *hsmWorld = NULL; // allocate
|
||||||
RQCard hsmCard;
|
|
||||||
RQCard_FIPS hsmFips;
|
|
||||||
M_KeyID hsmLtid;
|
M_KeyID hsmLtid;
|
||||||
NFKM_ModuleInfo *hsmModuleinfo = NULL;
|
NFKM_ModuleInfo *hsmModuleinfo = NULL;
|
||||||
M_ByteBlock *hsmBlobptr = NULL;
|
M_ByteBlock *hsmBlobptr = NULL;
|
||||||
@ -201,34 +199,6 @@ int hsm_initialize( void )
|
|||||||
return ret_code;
|
return ret_code;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO:この辺りのOCSカード処理?は必要?
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
// init Card-Loading Lib(RQCard)
|
|
||||||
ret_code = RQCard_init( &hsmCard, hsmHandle, hsmConnection, hsmWorld, NULL );
|
|
||||||
if ( ret_code != CR_GENID_SUCCESS )
|
|
||||||
{
|
|
||||||
printf( "error(%d) : RQCard_init\n", ret_code );
|
|
||||||
return ret_code;
|
|
||||||
}
|
|
||||||
|
|
||||||
// init FIPS state
|
|
||||||
ret_code = RQCard_fips_init( &hsmCard, &hsmFips );
|
|
||||||
if ( ret_code != CR_GENID_SUCCESS )
|
|
||||||
{
|
|
||||||
printf( "error(%d) : RQCard_fips_init\n", ret_code );
|
|
||||||
return ret_code;
|
|
||||||
}
|
|
||||||
|
|
||||||
// select Card-Auth UI
|
|
||||||
ret_code = RQCard_ui_scroll( &hsmCard );
|
|
||||||
if ( ret_code != CR_GENID_SUCCESS )
|
|
||||||
{
|
|
||||||
printf( "error(%d) : RQCard_ui_scroll\n", ret_code );
|
|
||||||
return ret_code;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENCRYPT_AES
|
#ifdef ENCRYPT_AES
|
||||||
// load aes dev key
|
// load aes dev key
|
||||||
ret_code = hsm_aes_load_key( hsmAesKeyidentDev, &hsmAesKeyidDev );
|
ret_code = hsm_aes_load_key( hsmAesKeyidentDev, &hsmAesKeyidDev );
|
||||||
@ -264,9 +234,6 @@ int hsm_initialize( void )
|
|||||||
|
|
||||||
void hsm_finalize( void )
|
void hsm_finalize( void )
|
||||||
{
|
{
|
||||||
RQCard_fips_free( &hsmCard, &hsmFips );
|
|
||||||
RQCard_destroy( &hsmCard );
|
|
||||||
|
|
||||||
NFKM_freeinfo( hsmHandle, &hsmWorld, NULL );
|
NFKM_freeinfo( hsmHandle, &hsmWorld, NULL );
|
||||||
NFastApp_Disconnect( hsmConnection, NULL );
|
NFastApp_Disconnect( hsmConnection, NULL );
|
||||||
NFastApp_Finish( hsmHandle, NULL );
|
NFastApp_Finish( hsmHandle, NULL );
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user