From 0b4d12313a6814ce45ffc42972539676effabb55 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 7 Dec 2021 10:45:00 +0100 Subject: [PATCH] Remove assertion on local nonce buffer size Signed-off-by: Ronald Cron --- library/psa_crypto.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index d3a2865ab..c2b4e48d3 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3893,10 +3893,6 @@ psa_status_t psa_aead_generate_nonce( psa_aead_operation_t *operation, goto exit; } -#if defined(assert) - assert( required_nonce_size <= sizeof( local_nonce ) ); -#endif - status = psa_generate_random( local_nonce, required_nonce_size ); if( status != PSA_SUCCESS ) goto exit;