mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Pass cipher_suite parameter of psa_pake_setup() by const reference
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
@@ -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
|
* \param[in,out] operation The operation object to set up. It must have
|
||||||
* been initialized but not set up yet.
|
* 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
|
* characterizes a PAKE algorithm and determines
|
||||||
* the algorithm as well.)
|
* the algorithm as well.)
|
||||||
*
|
*
|
||||||
@@ -1362,7 +1362,7 @@ static psa_pake_operation_t psa_pake_operation_init(void);
|
|||||||
* results in this error code.
|
* results in this error code.
|
||||||
*/
|
*/
|
||||||
psa_status_t psa_pake_setup(psa_pake_operation_t *operation,
|
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.
|
/** 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);
|
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)
|
static inline struct psa_pake_operation_s psa_pake_operation_init(void)
|
||||||
{
|
{
|
||||||
const struct psa_pake_operation_s v = PSA_PAKE_OPERATION_INIT;
|
const struct psa_pake_operation_s v = PSA_PAKE_OPERATION_INIT;
|
||||||
|
Reference in New Issue
Block a user