mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
PSA PAKE: introduce psa_pake_family_t
It is the size of something that has no a priori reason to consist of 8 bits. This should be psa_pake_family_t, both for documentation (and possibly static analysis) and in case 8 bits turn out not to be enough. Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
@ -465,7 +465,7 @@ struct psa_pake_cipher_suite_s
|
||||
{
|
||||
psa_algorithm_t algorithm;
|
||||
psa_pake_primitive_type_t type;
|
||||
uint8_t family;
|
||||
psa_pake_family_t family;
|
||||
size_t bits;
|
||||
psa_algorithm_t hash;
|
||||
};
|
||||
@ -499,7 +499,7 @@ static inline void psa_pake_cs_set_type(
|
||||
cipher_suite->type = type;
|
||||
}
|
||||
|
||||
static inline uint8_t psa_pake_cs_get_family(
|
||||
static inline psa_pake_family_t psa_pake_cs_get_family(
|
||||
const psa_pake_cipher_suite_t *cipher_suite)
|
||||
{
|
||||
return( cipher_suite->family );
|
||||
@ -507,7 +507,7 @@ static inline uint8_t psa_pake_cs_get_family(
|
||||
|
||||
static inline void psa_pake_cs_set_family(
|
||||
psa_pake_cipher_suite_t *cipher_suite,
|
||||
uint8_t family)
|
||||
psa_pake_family_t family)
|
||||
{
|
||||
cipher_suite->family = family;
|
||||
}
|
||||
|
Reference in New Issue
Block a user