Lines Matching refs:hash
99 } hash; in ima_store_template() local
105 hash.hdr.algo = HASH_ALGO_SHA1; in ima_store_template()
108 num_fields, &hash.hdr); in ima_store_template()
115 memcpy(entry->digest, hash.hdr.digest, hash.hdr.length); in ima_store_template()
202 } hash; in ima_collect_measurement() local
217 hash.hdr.algo = ima_hash_algo; in ima_collect_measurement()
220 ima_get_hash_algo(*xattr_value, *xattr_len, &hash.hdr); in ima_collect_measurement()
222 result = ima_calc_file_hash(file, &hash.hdr); in ima_collect_measurement()
224 int length = sizeof(hash.hdr) + hash.hdr.length; in ima_collect_measurement()
229 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement()
294 char hash[(iint->ima_hash->length * 2) + 1]; in ima_audit_measurement() local
296 char algo_hash[sizeof(hash) + strlen(algo_name) + 2]; in ima_audit_measurement()
303 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]); in ima_audit_measurement()
304 hash[i * 2] = '\0'; in ima_audit_measurement()
314 snprintf(algo_hash, sizeof(algo_hash), "%s:%s", algo_name, hash); in ima_audit_measurement()