From 47e700e7de4ced6c5b16eb853b2b384706b0375d Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 20 May 2022 10:16:41 +0200 Subject: [PATCH] Pass cipher_suite parameter of psa_pake_setup() by const reference Signed-off-by: Neil Armstrong --- include/psa/crypto_extra.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/psa/crypto_extra.h b/include/psa/crypto_extra.h index a1096b521f..0244d4a42d 100644 --- a/include/psa/crypto_extra.h +++ b/include/psa/crypto_extra.h @@ -1344,7 +1344,7 @@ static psa_pake_operation_t psa_pake_operation_init(void); * * \param[in,out] operation The operation object to set up. It must have * been initialized but not set up yet. - * \param cipher_suite The cipher suite to use. (A cipher suite fully + * \param[in] cipher_suite The cipher suite to use. (A cipher suite fully * characterizes a PAKE algorithm and determines * the algorithm as well.) * @@ -1362,7 +1362,7 @@ static psa_pake_operation_t psa_pake_operation_init(void); * results in this error code. */ psa_status_t psa_pake_setup(psa_pake_operation_t *operation, - psa_pake_cipher_suite_t cipher_suite); + const psa_pake_cipher_suite_t *cipher_suite); /** Set the password for a password-authenticated key exchange from key ID. * @@ -1818,7 +1818,6 @@ static inline struct psa_pake_cipher_suite_s psa_pake_cipher_suite_init(void) return(v); } -/* This only zeroes out the first byte in the union, the rest is unspecified. */ static inline struct psa_pake_operation_s psa_pake_operation_init(void) { const struct psa_pake_operation_s v = PSA_PAKE_OPERATION_INIT;