Pass cipher_suite parameter of psa_pake_setup() by const reference

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2022-05-20 10:16:41 +02:00
parent 0151c55b56
commit 47e700e7de

View file

@ -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;