Lines Matching defs:digest
226 static int ima_eventdigest_init_common(const u8 *digest, u32 digestsize,
231 * digest formats:
232 * - DATA_FMT_DIGEST: digest
233 * - DATA_FMT_DIGEST_WITH_ALGO: [<hash algo>] + ':' + '\0' + digest,
249 if (digest)
250 memcpy(buffer + offset, digest, digestsize);
253 * If digest is NULL, the event being recorded is a violation.
254 * Make room for the digest by increasing the offset of
264 * This function writes the digest of an event (with size limit).
271 char digest[IMA_MAX_DIGEST_SIZE];
284 cur_digest = event_data->iint->ima_hash->digest;
302 cur_digest = hash.hdr.digest;
307 if (!event_data->file) /* missing info to re-calculate the digest */
320 cur_digest = hash.hdr.digest;
328 * This function writes the digest of an event (without size limit).
339 cur_digest = event_data->iint->ima_hash->digest;
349 * This function writes the digest of the file which is expected to match the
350 * digest contained in the file's appended signature.
375 /* There was some error collecting the digest. */