Lines Matching refs:hash_id
957 ctx->hash_id = MBEDTLS_MD_NONE;
971 mbedtls_md_type_t hash_id)
989 (hash_id != MBEDTLS_MD_NONE)) {
991 if (mbedtls_md_info_from_type(hash_id) == NULL) {
998 ctx->hash_id = hash_id;
1016 return ctx->hash_id;
1777 hlen = mbedtls_md_get_size_from_type((mbedtls_md_type_t) ctx->hash_id);
1801 ret = compute_hash((mbedtls_md_type_t) ctx->hash_id, label, label_len, p);
1814 (mbedtls_md_type_t) ctx->hash_id)) != 0) {
1820 (mbedtls_md_type_t) ctx->hash_id)) != 0) {
1945 hlen = mbedtls_md_get_size_from_type((mbedtls_md_type_t) ctx->hash_id);
1969 (mbedtls_md_type_t) ctx->hash_id)) != 0 ||
1972 (mbedtls_md_type_t) ctx->hash_id)) != 0) {
1977 ret = compute_hash((mbedtls_md_type_t) ctx->hash_id,
2126 mbedtls_md_type_t hash_id;
2150 hash_id = (mbedtls_md_type_t) ctx->hash_id;
2151 if (hash_id == MBEDTLS_MD_NONE) {
2152 hash_id = md_alg;
2154 hlen = mbedtls_md_get_size_from_type(hash_id);
2197 ret = hash_mprime(hash, hashlen, salt, slen, p, (mbedtls_md_type_t)ctx->hash_id);
2209 (mbedtls_md_type_t)ctx->hash_id);
2235 if ((ctx->hash_id == MBEDTLS_MD_NONE) && (md_alg == MBEDTLS_MD_NONE)) {
2658 mgf1_hash_id = (ctx->hash_id != MBEDTLS_MD_NONE)
2659 ? (mbedtls_md_type_t) ctx->hash_id
2800 dst->hash_id = src->hash_id;