Add missing error conversion case
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
68efcf56ed
commit
09a9e589c1
1 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,8 @@ psa_status_t mbedtls_to_psa_error(int ret)
|
|||
case MBEDTLS_ERR_AES_INVALID_KEY_LENGTH:
|
||||
case MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH:
|
||||
return PSA_ERROR_NOT_SUPPORTED;
|
||||
case MBEDTLS_ERR_AES_BAD_INPUT_DATA:
|
||||
return PSA_ERROR_INVALID_ARGUMENT;
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_ASN1_PARSE_C) || defined(MBEDTLS_ASN1_WRITE_C)
|
||||
|
|
Loading…
Reference in a new issue