add else for not supported algorithm

This commit is contained in:
mohammad1603 2018-06-01 04:39:53 -07:00 committed by itayzafrir
parent 9b07132591
commit 39574652ae

View File

@ -1669,7 +1669,11 @@ psa_status_t psa_aead_decrypt( psa_key_slot_t key,
mbedtls_ccm_free( &ccm );
}
else
{
return( PSA_ERROR_INVALID_ARGUMENT );
}
*plaintext_length = ciphertext_length;
return( PSA_SUCCESS );
}