diff --git a/cr_generate_id.c b/cr_generate_id.c index ab30fc7..bf75416 100644 --- a/cr_generate_id.c +++ b/cr_generate_id.c @@ -158,31 +158,6 @@ const char *issuerNameDev = "NintendoCA - G2_NintendoCTR2dev"; const char *issuerNameProd = "NintendoCA - G2_NintendoCTR2prod"; -#ifdef USE_HSM -// TORIAEZU : nFast variables -NFast_AppHandle hsmHandle; -NFastApp_Connection hsmConnection; -NFKM_WorldInfo *hsmWorld = NULL; // allocate -RQCard hsmCard; -RQCard_FIPS hsmFips; -M_KeyID hsmLtid; -// AES -M_KeyID hsmAeskeyid; -const NFKM_KeyIdent hsmAeskeyident = { (char*)"simple", (char*)"aes-test-key" }; -NFKM_Key *hsmAeskeyinfo = NULL; // allocate -// RSA Private -M_KeyID hsmRsaPrivkeyid, hsmRsaPubkeyid; -const NFKM_KeyIdent hsmRsakeyident = { (char*)"simple", (char*)"rsa-priv-key-2048" }; -NFKM_Key *hsmRsakeyinfo = NULL; // allocate -NFKM_ModuleInfo *hsmModuleinfo = NULL; -M_ByteBlock *hsmBlobptr = NULL; - -// functions -static int hsm_generate_random( unsigned char *buf, int bytes ); -static int hsm_get_rtc( time_t *time ); - -#endif // USE_HSM - static struct _caInfo { X509 *cert; // 証明書