Lines Matching defs:digest
289 static int ima_eventdigest_init_common(const u8 *digest, u32 digestsize,
294 * digest formats:
295 * - DATA_FMT_DIGEST: digest
296 * - DATA_FMT_DIGEST_WITH_ALGO: <hash algo> + ':' + '\0' + digest,
298 * <digest type> + ':' + <hash algo> + ':' + '\0' + digest,
300 * where 'DATA_FMT_DIGEST' is the original digest format ('d')
302 * where <digest type> is either "ima" or "verity",
321 if (digest)
322 memcpy(buffer + offset, digest, digestsize);
325 * If digest is NULL, the event being recorded is a violation.
326 * Make room for the digest by increasing the offset by the
327 * hash algorithm digest size.
336 * This function writes the digest of an event (with size limit).
353 cur_digest = event_data->iint->ima_hash->digest;
371 cur_digest = hash.hdr.digest;
376 if (!event_data->file) /* missing info to re-calculate the digest */
389 cur_digest = hash.hdr.digest;
398 * This function writes the digest of an event (without size limit).
409 cur_digest = event_data->iint->ima_hash->digest;
420 * This function writes the digest of an event (without size limit),
421 * prefixed with both the digest type and hash algorithm.
433 cur_digest = event_data->iint->ima_hash->digest;
446 * This function writes the digest of the file which is expected to match the
447 * digest contained in the file's appended signature.
472 /* There was some error collecting the digest. */