Lines Matching refs:hash_alg

990  * \param hash_alg      A hash algorithm (\c PSA_ALG_XXX value such that
991 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
994 * \return Unspecified if \p hash_alg is not a supported
997 #define PSA_ALG_HMAC(hash_alg) \
998 (PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1401 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1402 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1407 * \return Unspecified if \p hash_alg is not a supported
1410 #define PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg) \
1411 (PSA_ALG_RSA_PKCS1V15_SIGN_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1435 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1436 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1441 * \return Unspecified if \p hash_alg is not a supported
1444 #define PSA_ALG_RSA_PSS(hash_alg) \
1445 (PSA_ALG_RSA_PSS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1453 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1454 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1459 * \return Unspecified if \p hash_alg is not a supported
1462 #define PSA_ALG_RSA_PSS_ANY_SALT(hash_alg) \
1463 (PSA_ALG_RSA_PSS_ANY_SALT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1470 * #PSA_ALG_RSA_PSS(\c hash_alg),
1471 * where \c hash_alg is a hash algorithm or
1484 * #PSA_ALG_RSA_PSS_ANY_SALT_BASE(\c hash_alg),
1485 * where \c hash_alg is a hash algorithm or
1501 * #PSA_ALG_RSA_PSS(\c hash_alg) or
1502 * #PSA_ALG_RSA_PSS_ANY_SALT_BASE(\c hash_alg),
1503 * where \c hash_alg is a hash algorithm or
1524 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1525 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1530 * \return Unspecified if \p hash_alg is not a supported
1533 #define PSA_ALG_ECDSA(hash_alg) \
1534 (PSA_ALG_ECDSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1553 * made with randomized ECDSA (#PSA_ALG_ECDSA(\p hash_alg)) with the
1555 * #PSA_ALG_DETERMINISTIC_ECDSA(\p hash_alg) differs from
1556 * #PSA_ALG_ECDSA(\p hash_alg) only for signature, not for verification.
1558 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1559 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1565 * \return Unspecified if \p hash_alg is not a supported
1568 #define PSA_ALG_DETERMINISTIC_ECDSA(hash_alg) \
1569 (PSA_ALG_DETERMINISTIC_ECDSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1776 * \param hash_alg The hash algorithm (\c PSA_ALG_XXX value such that
1777 * #PSA_ALG_IS_HASH(\p hash_alg) is true) to use
1781 * \return Unspecified if \p hash_alg is not a supported
1784 #define PSA_ALG_RSA_OAEP(hash_alg) \
1785 (PSA_ALG_RSA_OAEP_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1807 * \warning HKDF processes the salt as follows: first hash it with hash_alg
1813 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1814 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1817 * \return Unspecified if \p hash_alg is not a supported
1820 #define PSA_ALG_HKDF(hash_alg) \
1821 (PSA_ALG_HKDF_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1858 * \warning HKDF processes the salt as follows: first hash it with hash_alg
1864 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1865 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1868 * \return Unspecified if \p hash_alg is not a supported
1871 #define PSA_ALG_HKDF_EXTRACT(hash_alg) \
1872 (PSA_ALG_HKDF_EXTRACT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1906 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1907 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1910 * \return Unspecified if \p hash_alg is not a supported
1913 #define PSA_ALG_HKDF_EXPAND(hash_alg) \
1914 (PSA_ALG_HKDF_EXPAND_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1964 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
1965 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
1968 * \return Unspecified if \p hash_alg is not a supported
1971 #define PSA_ALG_TLS12_PRF(hash_alg) \
1972 (PSA_ALG_TLS12_PRF_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
2018 * PSA_ALG_KEY_AGREEMENT(ka_alg, PSA_ALG_TLS12_PSK_TO_MS(hash_alg))
2034 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
2035 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
2038 * \return Unspecified if \p hash_alg is not a supported
2041 #define PSA_ALG_TLS12_PSK_TO_MS(hash_alg) \
2042 (PSA_ALG_TLS12_PSK_TO_MS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
2100 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
2101 * #PSA_ALG_IS_HASH(\p hash_alg) is true).
2104 * \return Unspecified if \p hash_alg is not a supported
2107 #define PSA_ALG_PBKDF2_HMAC(hash_alg) \
2108 (PSA_ALG_PBKDF2_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))