Lines Matching defs:hash
88 unsigned char hash[MBEDTLS_MD_MAX_SIZE];
125 /* Calculate the hash of the data */
132 rc = mbedtls_md(md_info, p, data_len, hash);
139 rc = mbedtls_pk_verify_ext(pk_alg, sig_opts, &pk, md_alg, hash,
158 * Match a hash
169 unsigned char *p, *end, *hash;
176 * it is allowed. This is necessary to support multiple hash
189 /* Get the hash algorithm */
211 /* Length of hash must match the algorithm's size */
215 hash = p;
217 /* Calculate the hash of the data */
225 rc = memcmp(data_hash, hash, mbedtls_md_get_size(md_info));
251 /* Invalid hash algorithm. */
257 * Calculate a hash
259 * output points to the computed hash
273 * Calculate the hash of the data, it is safe to pass the
274 * 'output' hash buffer pointer considering its size is always