Pass cipher_suite parameter of psa_pake_setup() by const reference
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
diff --git a/include/psa/crypto_extra.h b/include/psa/crypto_extra.h
index a1096b5..0244d4a 100644
--- a/include/psa/crypto_extra.h
+++ b/include/psa/crypto_extra.h
@@ -1344,7 +1344,7 @@
*
* \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 @@
* 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 @@
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;