mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-26 07:35:35 +00:00
remove unnecessary check for block size
This commit is contained in:
parent
a1d9801683
commit
e109f21638
|
@ -1657,9 +1657,7 @@ psa_status_t psa_aead_decrypt( psa_key_slot_t key,
|
||||||
return( PSA_ERROR_NOT_PERMITTED );
|
return( PSA_ERROR_NOT_PERMITTED );
|
||||||
|
|
||||||
if ( !( ( key_type & PSA_KEY_TYPE_CATEGORY_MASK ) ==
|
if ( !( ( key_type & PSA_KEY_TYPE_CATEGORY_MASK ) ==
|
||||||
PSA_KEY_TYPE_CATEGORY_SYMMETRIC
|
PSA_KEY_TYPE_CATEGORY_SYMMETRIC )
|
||||||
&& PSA_BLOCK_CIPHER_BLOCK_SIZE( key_type ) ==
|
|
||||||
cipher_info->block_size ) )
|
|
||||||
return( PSA_ERROR_INVALID_ARGUMENT );
|
return( PSA_ERROR_INVALID_ARGUMENT );
|
||||||
|
|
||||||
if( alg == PSA_ALG_GCM )
|
if( alg == PSA_ALG_GCM )
|
||||||
|
|
Loading…
Reference in a new issue