Lines Matching full:digest
6 #include "digest.h"
9 * ipe_digest_parse() - parse a digest in IPE's policy.
15 * Use this function to create a property to parse the digest
16 * consistently. The parsed digest will be saved in @value in IPE's
27 u8 *digest = NULL; in ipe_digest_parse() local
51 digest = kzalloc(info->digest_len, GFP_KERNEL); in ipe_digest_parse()
52 if (!digest) { in ipe_digest_parse()
57 rc = hex2bin(digest, raw_digest, info->digest_len); in ipe_digest_parse()
64 info->digest = digest; in ipe_digest_parse()
69 kfree(digest); in ipe_digest_parse()
75 * ipe_digest_eval() - evaluate an IPE digest against another digest.
76 * @expected: Supplies the policy-provided digest value.
77 * @digest: Supplies the digest to compare against the policy digest value.
84 const struct digest_info *digest) in ipe_digest_eval() argument
86 return (expected->digest_len == digest->digest_len) && in ipe_digest_eval()
87 (!strcmp(expected->alg, digest->alg)) && in ipe_digest_eval()
88 (!memcmp(expected->digest, digest->digest, expected->digest_len)); in ipe_digest_eval()
92 * ipe_digest_free() - free an IPE digest.
93 * @info: Supplies a pointer the policy-provided digest to free.
101 kfree(info->digest); in ipe_digest_free()
106 * ipe_digest_audit() - audit a digest that was sourced from IPE's policy.
117 audit_log_n_hex(ab, info->digest, info->digest_len); in ipe_digest_audit()