mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
r72のHSM関連コード対策漏れ
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@73 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
parent
5813af8471
commit
13c4b63a45
@ -145,7 +145,7 @@ int GetTimestamp( u8 *pYear, u8 *pMonth, u8 *pMday, u8 *pHour, u8 *pMin, u8 *pSe
|
||||
#ifdef USE_HSM
|
||||
ret_code = hsm_get_rtc( &tv.tv_sec );
|
||||
if( ret_code != CR_GENID_SUCCESS ) {
|
||||
SetErrorInfo( ret_code, __FILE__, __LINE__ );
|
||||
SetErrorInfo( __FUNCTION__, __LINE__ );
|
||||
return ret_code;
|
||||
}
|
||||
#else // !USE_HSM
|
||||
@ -225,7 +225,7 @@ int GenerateRandom( u8 *pDst, int length )
|
||||
ret_code = hsm_generate_random( pDst, CR_RANDOM_LENGTH );
|
||||
if ( ret_code != CR_GENID_SUCCESS )
|
||||
{
|
||||
SetErrorInfo( CR_GENID_ERROR_ECDSA_VERIFY, __FILE__, __LINE__ );
|
||||
SetErrorInfo( __FUNCTION__, __LINE__ );
|
||||
}
|
||||
#else // !USE_HSM
|
||||
int i;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user