From 4721a6f33ea1cba78af7c30f1d61098b064b0e87 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 20 May 2022 10:53:00 +0200 Subject: [PATCH] Update return documentation of psa_pake_setup() Signed-off-by: Neil Armstrong --- include/psa/crypto_extra.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/psa/crypto_extra.h b/include/psa/crypto_extra.h index ba74680272..7f6d570e03 100644 --- a/include/psa/crypto_extra.h +++ b/include/psa/crypto_extra.h @@ -1378,10 +1378,18 @@ static psa_pake_operation_t psa_pake_operation_init(void); * * \retval #PSA_SUCCESS * Success. + * \retval #PSA_ERROR_INVALID_ARGUMENT + * The algorithm in \p cipher_suite is not a PAKE algorithm, or the + * PAKE primitive in \p cipher_suite is not compatible with the + * PAKE algorithm, or the hash algorithm in \p cipher_suite is invalid + * or not compatible with the PAKE algorithm and primitive. * \retval #PSA_ERROR_NOT_SUPPORTED - * The \p cipher_suite is not supported or is not valid. + * The algorithm in \p cipher_suite is not a supported PAKE algorithm, + * or the PAKE primitive in \p cipher_suite is not supported or not + * compatible with the PAKE algorithm, or the hash algorithm in + * \p cipher_suite is not supported or not compatible with the PAKE + * algorithm and primitive. * \retval #PSA_ERROR_COMMUNICATION_FAILURE - * \retval #PSA_ERROR_HARDWARE_FAILURE * \retval #PSA_ERROR_CORRUPTION_DETECTED * \retval #PSA_ERROR_BAD_STATE * The operation state is not valid, or