mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-28 00:35:21 +00:00
Overall PSA PAKE API style issues fixes
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
5892aa69e3
commit
5ed8a0ec73
@ -1862,7 +1862,7 @@ static inline void psa_pake_cs_set_algorithm(
|
|||||||
psa_pake_cipher_suite_t *cipher_suite,
|
psa_pake_cipher_suite_t *cipher_suite,
|
||||||
psa_algorithm_t algorithm)
|
psa_algorithm_t algorithm)
|
||||||
{
|
{
|
||||||
if( !PSA_ALG_IS_PAKE(algorithm) )
|
if( !PSA_ALG_IS_PAKE( algorithm ) )
|
||||||
cipher_suite->algorithm = 0;
|
cipher_suite->algorithm = 0;
|
||||||
else
|
else
|
||||||
cipher_suite->algorithm = algorithm;
|
cipher_suite->algorithm = algorithm;
|
||||||
@ -1871,8 +1871,8 @@ static inline void psa_pake_cs_set_algorithm(
|
|||||||
static inline psa_pake_primitive_t psa_pake_cs_get_primitive(
|
static inline psa_pake_primitive_t psa_pake_cs_get_primitive(
|
||||||
const psa_pake_cipher_suite_t *cipher_suite )
|
const psa_pake_cipher_suite_t *cipher_suite )
|
||||||
{
|
{
|
||||||
return( PSA_PAKE_PRIMITIVE(cipher_suite->type, cipher_suite->family,
|
return( PSA_PAKE_PRIMITIVE( cipher_suite->type, cipher_suite->family,
|
||||||
cipher_suite->bits) );
|
cipher_suite->bits ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void psa_pake_cs_set_primitive(
|
static inline void psa_pake_cs_set_primitive(
|
||||||
@ -1905,7 +1905,7 @@ static inline psa_algorithm_t psa_pake_cs_get_hash(
|
|||||||
static inline void psa_pake_cs_set_hash( psa_pake_cipher_suite_t *cipher_suite,
|
static inline void psa_pake_cs_set_hash( psa_pake_cipher_suite_t *cipher_suite,
|
||||||
psa_algorithm_t hash )
|
psa_algorithm_t hash )
|
||||||
{
|
{
|
||||||
if( !PSA_ALG_IS_HASH(hash) )
|
if( !PSA_ALG_IS_HASH( hash ) )
|
||||||
cipher_suite->hash = 0;
|
cipher_suite->hash = 0;
|
||||||
else
|
else
|
||||||
cipher_suite->hash = hash;
|
cipher_suite->hash = hash;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user