From 7267e56189d3ac93bb68c89981435080ea4ef7b6 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Wed, 13 Nov 2024 15:29:21 +0000 Subject: [PATCH] Fix incorrect return code Code return differs from raw agreement, so tests fail. Signed-off-by: Paul Elliott --- tf-psa-crypto/core/psa_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf-psa-crypto/core/psa_crypto.c b/tf-psa-crypto/core/psa_crypto.c index 36c7a2090a..d82e36a92f 100644 --- a/tf-psa-crypto/core/psa_crypto.c +++ b/tf-psa-crypto/core/psa_crypto.c @@ -7737,7 +7737,7 @@ static psa_status_t validate_key_agreement_params(const psa_key_attributes_t *at psa_key_type_t key_type; if (!PSA_ALG_IS_RAW_KEY_AGREEMENT(alg)) { - return PSA_ERROR_INVALID_ARGUMENT; + return PSA_ERROR_NOT_SUPPORTED; } key_type = psa_get_key_type(attributes);