Lines Matching refs:hash
27 gcry_err_code_t AF_merge (const gcry_md_spec_t * hash, grub_uint8_t * src,
32 diffuse (const gcry_md_spec_t * hash, grub_uint8_t * src,
36 grub_uint32_t IV; /* host byte order independend hash IV */
38 grub_size_t fullblocks = size / hash->mdlen;
39 int padding = size % hash->mdlen;
40 grub_uint8_t final[hash->mdlen];
41 grub_uint8_t temp[sizeof (IV) + hash->mdlen];
43 /* hash block the whole data set with different IVs to produce
50 grub_memcpy (temp + sizeof (IV), src + hash->mdlen * i, hash->mdlen);
51 grub_crypto_hash (hash, dst + hash->mdlen * i, temp,
52 sizeof (IV) + hash->mdlen);
59 grub_memcpy (temp + sizeof (IV), src + hash->mdlen * i, padding);
60 grub_crypto_hash (hash, final, temp, sizeof (IV) + padding);
61 grub_memcpy (dst + hash->mdlen * i, final, padding);
69 AF_merge (const gcry_md_spec_t * hash, grub_uint8_t * src, grub_uint8_t * dst,
83 diffuse (hash, bufblock, bufblock, blocksize);