Lines Matching refs:hash
102 } hash; in ima_store_template() local
108 hash.hdr.algo = HASH_ALGO_SHA1; in ima_store_template()
111 num_fields, &hash.hdr); in ima_store_template()
118 memcpy(entry->digest, hash.hdr.digest, hash.hdr.length); in ima_store_template()
203 } hash; in ima_collect_measurement() local
218 hash.hdr.algo = ima_hash_algo; in ima_collect_measurement()
221 ima_get_hash_algo(*xattr_value, *xattr_len, &hash.hdr); in ima_collect_measurement()
223 result = ima_calc_file_hash(file, &hash.hdr); in ima_collect_measurement()
225 int length = sizeof(hash.hdr) + hash.hdr.length; in ima_collect_measurement()
230 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()