From d3308177278074049420680018220be553389601 Mon Sep 17 00:00:00 2001 From: kubodera_yuichi Date: Wed, 23 Dec 2009 07:20:18 +0000 Subject: [PATCH] =?UTF-8?q?r63=E3=81=AE=E3=83=93=E3=83=AB=E3=83=89?= =?UTF-8?q?=E3=82=92=E9=80=9A=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@64 ff987cc8-cf2f-4642-8568-d52cce064691 --- cr_hsm_code.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/cr_hsm_code.c b/cr_hsm_code.c index 1782858..2aedc6b 100644 --- a/cr_hsm_code.c +++ b/cr_hsm_code.c @@ -134,8 +134,6 @@ NFast_AppHandle hsmHandle; NFastApp_Connection hsmConnection; NFKM_WorldInfo *hsmWorld = NULL; // allocate -RQCard hsmCard; -RQCard_FIPS hsmFips; M_KeyID hsmLtid; NFKM_ModuleInfo *hsmModuleinfo = NULL; M_ByteBlock *hsmBlobptr = NULL; @@ -201,34 +199,6 @@ int hsm_initialize( void ) 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 // load aes dev key ret_code = hsm_aes_load_key( hsmAesKeyidentDev, &hsmAesKeyidDev ); @@ -264,9 +234,6 @@ int hsm_initialize( void ) void hsm_finalize( void ) { - RQCard_fips_free( &hsmCard, &hsmFips ); - RQCard_destroy( &hsmCard ); - NFKM_freeinfo( hsmHandle, &hsmWorld, NULL ); NFastApp_Disconnect( hsmConnection, NULL ); NFastApp_Finish( hsmHandle, NULL );