Fix precedence in psa_pake_cs_set_primitive()
Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
ed82716546
commit
ef816f37be
1 changed files with 1 additions and 1 deletions
|
@ -497,7 +497,7 @@ static inline void psa_pake_cs_set_primitive(
|
||||||
psa_pake_cipher_suite_t *cipher_suite,
|
psa_pake_cipher_suite_t *cipher_suite,
|
||||||
psa_pake_primitive_t primitive)
|
psa_pake_primitive_t primitive)
|
||||||
{
|
{
|
||||||
cipher_suite->type = (psa_pake_primitive_type_t) primitive >> 24;
|
cipher_suite->type = (psa_pake_primitive_type_t) (primitive >> 24);
|
||||||
cipher_suite->family = (psa_pake_family_t) ( 0xFF & (primitive >> 16) );
|
cipher_suite->family = (psa_pake_family_t) ( 0xFF & (primitive >> 16) );
|
||||||
cipher_suite->bits = (uint16_t) ( 0xFFFF & primitive );
|
cipher_suite->bits = (uint16_t) ( 0xFFFF & primitive );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue