diff --git a/cr_hsm_code.c b/cr_hsm_code.c index fff6cd3..fbb5567 100644 --- a/cr_hsm_code.c +++ b/cr_hsm_code.c @@ -128,7 +128,9 @@ #include "rqcard-fips.h" // nShield optional #include "simplebignum.h" +#endif // USE_HSM +#ifdef USE_HSM // TORIAEZU : nFast variables NFast_AppHandle hsmHandle; NFastApp_Connection hsmConnection; @@ -149,9 +151,12 @@ const NFKM_KeyIdent hsmRsakeyident = { (char*)"simple", (char*)"rsa-priv-key-204 NFKM_Key *hsmRsakeyinfo = NULL; // allocate #endif // ENCRYPT_AES +#endif // USE_HSM + static int hsm_rsa_load_keypair( void ); static int hsm_aes_load_key( void ); +#ifdef USE_HSM // init HSM int hsm_initialize( void ) {