From b2d392fec911e10c186b44e9999be08328ff9cd5 Mon Sep 17 00:00:00 2001 From: kubodera_yuichi Date: Tue, 29 Dec 2009 04:05:25 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=89=E4=BF=AE=E6=AD=A3?= 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@126 ff987cc8-cf2f-4642-8568-d52cce064691 --- cr_generate_id_private.h | 2 -- cr_hsm_alloc.c | 2 +- cr_hsm_alloc.h | 8 ++++---- cr_hsm_bignum.c | 2 +- cr_hsm_bignum.h | 7 +++---- cr_hsm_code.c | 13 ++++++------- 6 files changed, 15 insertions(+), 19 deletions(-) diff --git a/cr_generate_id_private.h b/cr_generate_id_private.h index fa53abd..a56d7c8 100644 --- a/cr_generate_id_private.h +++ b/cr_generate_id_private.h @@ -122,8 +122,6 @@ extern "C" { #include "nfkm.h" #include "rqcard-applic.h" #include "rqcard-fips.h" -// nShield optional -#include "simplebignum.h" #endif // USE_HSM #include diff --git a/cr_hsm_alloc.c b/cr_hsm_alloc.c index bbe770d..f4bfd0c 100644 --- a/cr_hsm_alloc.c +++ b/cr_hsm_alloc.c @@ -13,7 +13,7 @@ #include "nfastapp.h" #include "nfutil.h" -#include "my_hsm_alloc.h" +#include "cr_hsm_alloc.h" /* --------------------- */ diff --git a/cr_hsm_alloc.h b/cr_hsm_alloc.h index 91a39ff..c7c85a6 100644 --- a/cr_hsm_alloc.h +++ b/cr_hsm_alloc.h @@ -1,9 +1,9 @@ /* -* my_hsm_alloc.h +* cr_hsm_alloc.h */ -#ifndef MY_HSM_ALLOC_H -#define MY_HSM_ALLOC_H +#ifndef CR_HSM_ALLOC_H +#define CR_HSM_ALLOC_H #include "nfastapp.h" @@ -26,5 +26,5 @@ void my_hsm_free( void *ptr, } #endif -#endif // MY_HSM_ALLOC_H +#endif // CR_HSM_ALLOC_H diff --git a/cr_hsm_bignum.c b/cr_hsm_bignum.c index b535776..2727a07 100644 --- a/cr_hsm_bignum.c +++ b/cr_hsm_bignum.c @@ -26,7 +26,7 @@ #include "nfastapp.h" #include "nfutil.h" -#include "my_hsm_bignum.h" +#include "cr_hsm_bignum.h" /* --------------------- */ diff --git a/cr_hsm_bignum.h b/cr_hsm_bignum.h index c029d8a..21b098a 100644 --- a/cr_hsm_bignum.h +++ b/cr_hsm_bignum.h @@ -22,8 +22,8 @@ * */ -#ifndef MY_ALLOC_H -#define MY_ALLOC_H +#ifndef CR_HSM_BIGNUM_H +#define CR_HSM_BIGNUM_H #include "nfastapp.h" @@ -174,5 +174,4 @@ extern int my_compare ( const struct NFast_Bignum *pA, } #endif -#endif - +#endif // CR_HSM_BIGNUM_H diff --git a/cr_hsm_code.c b/cr_hsm_code.c index 415fdd3..fc24df0 100644 --- a/cr_hsm_code.c +++ b/cr_hsm_code.c @@ -119,6 +119,7 @@ #ifdef USE_HSM #include "cr_hsm_code.h" +#include "cr_hsm_bignum.h" #include "cr_generate_id.h" #include "cr_generate_id_private.h" @@ -127,8 +128,6 @@ #include "nfkm.h" #include "rqcard-applic.h" #include "rqcard-fips.h" -// nShield optional -#include "cr_hsm_bignum.h" // TORIAEZU : nFast variables NFast_AppHandle hsmHandle; @@ -176,11 +175,11 @@ int hsm_initialize( void ) // set BigNum upcalls for HSM ret_code = NFastApp_SetBignumUpcalls( hsmHandle, - sbn_bignumreceiveupcall, - sbn_bignumsendlenupcall, - sbn_bignumsendupcall, - sbn_bignumfreeupcall, - sbn_bignumformatupcall, + my_bignumreceiveupcall, + my_bignumsendlenupcall, + my_bignumsendupcall, + my_bignumfreeupcall, + my_bignumformatupcall, NULL ); if ( ret_code != CR_GENID_SUCCESS ) {