Skip to content

Commit 5fa5162

Browse files
psa_crypto_pake.c: Restore MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE translation
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
1 parent 3662663 commit 5fa5162

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/builtin/src/psa_crypto_pake.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ static psa_status_t mbedtls_ecjpake_to_psa_error(int ret)
112112
switch (ret) {
113113
case MBEDTLS_ERR_ECP_INVALID_KEY:
114114
return PSA_ERROR_DATA_INVALID;
115+
case MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE:
116+
return PSA_ERROR_NOT_SUPPORTED;
115117
default:
116118
return PSA_ERROR_GENERIC_ERROR;
117119
}

0 commit comments

Comments
 (0)