Lines Matching refs:hash
356 #define MBEDTLS_SSL_TLS12_SIG_AND_HASH_ALG(sig, hash) ((hash << 8) | sig)
1290 * \brief Find the preferred hash for a given signature algorithm.
1296 * \return The preferred hash algorithm for \p sig_alg. It is a hash algorithm
1572 mbedtls_md_type_t mbedtls_ssl_md_alg_from_hash(unsigned char hash);
1754 /* The hash buffer must have at least MBEDTLS_MD_MAX_SIZE bytes of length. */
1757 unsigned char *hash, size_t *hashlen,
2516 /* High byte is hash */
2517 unsigned char hash = MBEDTLS_BYTE_1(sig_alg);
2520 switch (hash) {