Lines Matching refs:hash
71 * Return 1 to appraise or hash
185 /* return default hash algo */
220 /* return default hash algo */
237 * calc_file_id_hash - calculate the hash of the ima_file_id struct data
239 * @algo: hash algorithm [enum hash_algo]
241 * @hash: (out) pointer to the hash
244 * indirectly signing the hash of the ima_file_id structure data.
253 struct ima_digest_data *hash)
262 memcpy(file_id.hash, digest, hash_digest_size[algo]);
264 hash->algo = algo;
265 hash->length = hash_digest_size[algo];
267 return ima_calc_buffer_hash(&file_id, sizeof(file_id) - unused, hash);
273 * Verify whether the hash or signature matches the file contents.
281 struct ima_max_digest_data hash;
308 * xattr length may be longer. md5 hash in previous
317 *cause = "invalid-hash";
382 container_of(&hash.hdr,
392 xattr_len, hash.digest,
393 hash.hdr.length);
441 * Add the hash of the blacklisted binary to the measurement list, based
444 * Returns -EPERM if the hash is blacklisted.
466 "blacklisted-hash", NONE,
476 * Assuming success, compare the xattr hash with the collected measurement.
508 cause = "missing-hash";
603 * ima_update_xattr - update 'security.ima' hash value
610 /* do not collect and update hash for digital signatures */
693 * validate_hash_algo() - Block setxattr with unsupported hash algorithms
698 * The xattr value is mapped to its hash algorithm, and this algorithm
711 const char *errmsg = "unavailable-hash-algorithm";
724 * We use a different audit message when the hash algorithm
728 errmsg = "denied-hash-algorithm";