From 29db6706cae9eaf356cd1714376434618c1ea574 Mon Sep 17 00:00:00 2001 From: kubodera_yuichi Date: Tue, 22 Dec 2009 06:39:30 +0000 Subject: [PATCH] =?UTF-8?q?ifdef=E6=8A=9C=E3=81=91=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20=E3=81=9D=E3=81=AE2?= 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@26 ff987cc8-cf2f-4642-8568-d52cce064691 --- cr_hsm_code.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cr_hsm_code.c b/cr_hsm_code.c index eda5de5..b784779 100644 --- a/cr_hsm_code.c +++ b/cr_hsm_code.c @@ -246,7 +246,13 @@ void hsm_finalize( void ) { RQCard_fips_free( &hsmCard, &hsmFips ); RQCard_destroy( &hsmCard ); + +#ifdef ENCRYPT_AES NFKM_freekey( hsmHandle, hsmAeskeyinfo, NULL ); +#else // !ENCRYPT_AES + NFKM_freekey( hsmHandle, hsmRsakeyinfo, NULL ); +#endif // ENCRYPT_AES + NFKM_freeinfo( hsmHandle, &hsmWorld, NULL ); NFastApp_Disconnect( hsmConnection, NULL ); NFastApp_Finish( hsmHandle, NULL );