From e109f216383a8a7cbe737dc337becb617285b78f Mon Sep 17 00:00:00 2001 From: mohammad1603 Date: Thu, 7 Jun 2018 01:38:14 +0300 Subject: [PATCH] remove unnecessary check for block size --- library/psa_crypto.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index f0439e3ec..ba1fd9d4c 100755 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -1657,9 +1657,7 @@ psa_status_t psa_aead_decrypt( psa_key_slot_t key, return( PSA_ERROR_NOT_PERMITTED ); if ( !( ( key_type & PSA_KEY_TYPE_CATEGORY_MASK ) == - PSA_KEY_TYPE_CATEGORY_SYMMETRIC - && PSA_BLOCK_CIPHER_BLOCK_SIZE( key_type ) == - cipher_info->block_size ) ) + PSA_KEY_TYPE_CATEGORY_SYMMETRIC ) return( PSA_ERROR_INVALID_ARGUMENT ); if( alg == PSA_ALG_GCM )