Lines Matching refs:ima_hash
77 __setup("ima_hash=", hash_setup);
586 /* ima_hash could be allocated in case of failure. */
588 kfree(tmp_iint.ima_hash);
604 if (!iint->ima_hash || !(iint->flags & IMA_COLLECTED)) {
612 copied_size = min_t(size_t, iint->ima_hash->length, buf_size);
613 memcpy(buf, iint->ima_hash->digest, copied_size);
615 hash_algo = iint->ima_hash->algo;
619 kfree(iint->ima_hash);
982 iint.ima_hash = &hash.hdr;
983 iint.ima_hash->algo = ima_hash_algo;
984 iint.ima_hash->length = hash_digest_size[ima_hash_algo];
986 ret = ima_calc_buffer_hash(buf, size, iint.ima_hash);
996 iint.ima_hash);
1007 memcpy(digest, iint.ima_hash->digest, digest_hash_len);