Lines Matching full:digest
20 * Digest the relevant parts of the PKCS#7 data
33 /* The digest was calculated already. */ in pkcs7_digest()
34 if (sig->digest) in pkcs7_digest()
51 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL); in pkcs7_digest()
52 if (!sig->digest) in pkcs7_digest()
61 /* Digest the message [RFC2315 9.3] */ in pkcs7_digest()
63 sig->digest); in pkcs7_digest()
66 pr_devel("MsgDigest = [%*ph]\n", 8, sig->digest); in pkcs7_digest()
69 * message digest attribute amongst them which corresponds to the in pkcs7_digest()
70 * digest we just calculated. in pkcs7_digest()
82 pr_warn("Sig %u: Invalid digest size (%u)\n", in pkcs7_digest()
88 if (memcmp(sig->digest, sinfo->msgdigest, in pkcs7_digest()
90 pr_warn("Sig %u: Message digest doesn't match\n", in pkcs7_digest()
97 * as the contents of the digest instead. Note that we need to in pkcs7_digest()
101 memset(sig->digest, 0, sig->digest_size); in pkcs7_digest()
111 sinfo->authattrs_len, sig->digest); in pkcs7_digest()
114 pr_devel("AADigest = [%*ph]\n", 8, sig->digest); in pkcs7_digest()
141 *buf = sinfo->sig->digest; in pkcs7_get_digest()
323 /* First of all, digest the data in the PKCS#7 message and the in pkcs7_verify_one()
369 * Verify a PKCS#7 message is internally consistent - that is, the data digest
370 * matches the digest in the AuthAttrs and any signature in the message or one