mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-13 09:05:08 -04:00
Remove assertion on local nonce buffer size
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
0118627013
commit
0b4d12313a
@ -3893,10 +3893,6 @@ psa_status_t psa_aead_generate_nonce( psa_aead_operation_t *operation,
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(assert)
|
|
||||||
assert( required_nonce_size <= sizeof( local_nonce ) );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
status = psa_generate_random( local_nonce, required_nonce_size );
|
status = psa_generate_random( local_nonce, required_nonce_size );
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
goto exit;
|
goto exit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user