PSA_PAKE_PRIMITIVE macro
Construct a PAKE primitive from type, family and bit-size.
Syntax
#define PSA_PAKE_PRIMITIVE(pake_type, pake_family, pake_bits) \
((pake_bits & 0xFFFF) != pake_bits) ? 0 : \
((psa_pake_primitive_t) (((pake_type) << 24 | \
(pake_family) << 16) | (pake_bits)))
Arguments
pake_type
The type of the primitive (value of type ::psa_pake_primitive_type_t).
pake_family
The family of the primitive (the type and interpretation of this parameter depends on \p pake_type, for more information consult the documentation of individual ::psa_pake_primitive_type_t constants).
pake_bits
The bit-size of the primitive (Value of type \c size_t. The interpretation of this parameter depends on \p pake_family, for more information consult the documentation of individual ::psa_pake_primitive_type_t constants).
Return value
The constructed primitive value of type ::psa_pake_primitive_t. Return 0 if the requested primitive can't be encoded as ::psa_pake_primitive_t.