Lines Matching defs:primitive
625 * \c q is order of the group defined by the primitive set in the cipher suite.
733 /** Encoding of the type of the PAKE's primitive.
743 /** \brief Encoding of the family of the primitive associated with the PAKE.
750 /** \brief Encoding of the primitive associated with the PAKE.
792 /** The PAKE primitive type indicating the use of elliptic curves.
812 /** The PAKE primitive type indicating the use of Diffie-Hellman groups.
832 /** Construct a PAKE primitive from type, family and bit-size.
834 * \param pake_type The type of the primitive
836 * \param pake_family The family of the primitive
841 * \param pake_bits The bit-size of the primitive
847 * \return The constructed primitive value of type ::psa_pake_primitive_t.
848 * Return 0 if the requested primitive can't be encoded as
859 * keys on the group determined by the primitive (::psa_pake_primitive_t) would
876 * keys on the group determined by the primitive (::psa_pake_primitive_t) would
944 /** Retrieve the primitive from a PAKE cipher suite.
948 * \return The primitive stored in the cipher suite structure.
953 /** Declare the primitive for a PAKE cipher suite.
955 * This function overwrites any primitive previously set in \p cipher_suite.
958 * \param primitive The primitive to write. If this is 0, the
959 * primitive type in \p cipher_suite becomes
963 psa_pake_primitive_t primitive);
974 /** Retrieve the PAKE primitive bit-size from a PAKE cipher suite.
978 * \return The PAKE primitive bit-size stored in the cipher suite structure.
1214 * PAKE primitive in \p cipher_suite is not compatible with the
1216 * or not compatible with the PAKE algorithm and primitive.
1219 * or the PAKE primitive in \p cipher_suite is not supported or not
1222 * algorithm and primitive.
1430 * primitive, \p output_step) where \c alg and
1431 * \p primitive are the PAKE algorithm and primitive
1620 * \param primitive A primitive of type ::psa_pake_primitive_t that is
1625 * PAKE algorithm, primitive, and output step. If the
1626 * PAKE algorithm, primitive, or output step is not
1630 #define PSA_PAKE_OUTPUT_SIZE(alg, primitive, output_step) \
1632 primitive == PSA_PAKE_PRIMITIVE(PSA_PAKE_PRIMITIVE_TYPE_ECC, \
1651 * \param primitive A primitive of type ::psa_pake_primitive_t that is
1660 #define PSA_PAKE_INPUT_SIZE(alg, primitive, input_step) \
1662 primitive == PSA_PAKE_PRIMITIVE(PSA_PAKE_PRIMITIVE_TYPE_ECC, \
1672 * algorithm and primitive suites and output step.
1679 * See also #PSA_PAKE_OUTPUT_SIZE(\p alg, \p primitive, \p output_step).
1684 * algorithm and primitive suites and input step.
1691 * See also #PSA_PAKE_INPUT_SIZE(\p alg, \p primitive, \p output_step).
1744 psa_pake_primitive_t primitive)
1746 cipher_suite->type = (psa_pake_primitive_type_t) (primitive >> 24);
1747 cipher_suite->family = (psa_pake_family_t) (0xFF & (primitive >> 16));
1748 cipher_suite->bits = (uint16_t) (0xFFFF & primitive);
1848 /* A primitive of type compatible with algorithm */
1849 psa_pake_primitive_t MBEDTLS_PRIVATE(primitive);