linuxでのビルドを通す その3

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@15 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
kubodera_yuichi 2009-12-22 02:21:51 +00:00
parent 1a0a5593d7
commit 928ab41882
2 changed files with 3 additions and 2 deletions

View File

@ -251,7 +251,7 @@ static int generate_EC_private_key( EC_KEY *eckey, u8 *privKey )
#ifdef USE_HSM
ret_code = hsm_generate_random( privKey, EC_PRIVATE_KEY_LENGTH );
if ( ret_code != Status_OK )
if ( ret_code != CR_GENID_SUCCESS )
{
printf( "error(%d) : hsm_generate_random\n", ret_code );
return ret_code;
@ -856,7 +856,7 @@ int cr_generate_id( u32 serial[CR_NUM_OF_SERIAL], u8 id_buf[CR_ID_BUF_SIZE], u8
//--------------------------------------------------------------
#ifdef USE_HSM
ret_code = hsm_generate_random( cr_id_buf->random, CR_RANDOM_LENGTH );
if ( ret_code != Status_OK )
if ( ret_code != CR_GENID_SUCCESS )
{
printf( "error(%d) : hsm_generate_random\n", ret_code );
return ret_code;

View File

@ -118,6 +118,7 @@ extern "C" {
// functions
int hsm_initialize( void );
void hsm_finalize( void );
int hsm_generate_random( unsigned char *buf, int bytes );
int hsm_get_rtc( time_t *time );