Lines Matching defs:hash
89 * Calculate the hash of a template entry, add the template entry
129 * Violations are flagged in the measurement list with zero hash values.
202 * Calculate the file hash, if it doesn't already exist,
224 } hash;
243 hash.hdr.algo = algo;
245 /* Initialize hash digest to 0's in case of failure */
246 memset(&hash.digest, 0, sizeof(hash.digest));
249 result = ima_calc_buffer_hash(buf, size, &hash.hdr);
251 result = ima_calc_file_hash(file, &hash.hdr);
256 length = sizeof(hash.hdr) + hash.hdr.length;
264 memcpy(iint->ima_hash, &hash, length);
349 char *hash;
356 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL);
357 if (!hash)
361 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]);
362 hash[i * 2] = '\0';
371 audit_log_format(ab, " hash=\"%s:%s\"", algo_name, hash);
378 kfree(hash);