Lines Matching defs:hash
342 uint8_t *hash,
350 /* Fill the output buffer with something that isn't a valid hash
351 * (barring an attack on the hash and deliberately-crafted input),
354 /* If hash_size is 0 then hash may be NULL and then the
357 memset(hash, '!', hash_size);
368 ret = mbedtls_md5_finish(&operation->ctx.md5, hash);
373 ret = mbedtls_ripemd160_finish(&operation->ctx.ripemd160, hash);
378 ret = mbedtls_sha1_finish(&operation->ctx.sha1, hash);
383 ret = mbedtls_sha256_finish(&operation->ctx.sha256, hash);
388 ret = mbedtls_sha256_finish(&operation->ctx.sha256, hash);
393 ret = mbedtls_sha512_finish(&operation->ctx.sha512, hash);
398 ret = mbedtls_sha512_finish(&operation->ctx.sha512, hash);
417 ret = mbedtls_sha3_finish(&operation->ctx.sha3, hash, hash_size);
421 (void) hash;
437 uint8_t *hash,
454 status = mbedtls_psa_hash_finish(&operation, hash, hash_size, hash_length);