From 799106b4414f7da3975edd391ef8850022270aae Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 20 May 2022 10:18:53 +0200 Subject: [PATCH] Pass input as const reference and fix documentation of psa_pake_input() Signed-off-by: Neil Armstrong --- include/psa/crypto_extra.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/psa/crypto_extra.h b/include/psa/crypto_extra.h index 0244d4a42..eccc190be 100644 --- a/include/psa/crypto_extra.h +++ b/include/psa/crypto_extra.h @@ -1588,12 +1588,12 @@ psa_status_t psa_pake_output(psa_pake_operation_t *operation, * * \param[in,out] operation Active PAKE operation. * \param step The step for which the input is provided. - * \param[out] input Buffer containing the input in the format + * \param[in] input Buffer containing the input in the format * appropriate for this \p step. Refer to the * documentation of the individual * \c PSA_PAKE_STEP_XXX constants for more * information. - * \param[out] input_length Size of the \p input buffer in bytes. + * \param input_length Size of the \p input buffer in bytes. * * \retval #PSA_SUCCESS * Success. @@ -1613,7 +1613,7 @@ psa_status_t psa_pake_output(psa_pake_operation_t *operation, */ psa_status_t psa_pake_input(psa_pake_operation_t *operation, psa_pake_step_t step, - uint8_t *input, + const uint8_t *input, size_t input_length); /** Get implicitly confirmed shared secret from a PAKE.