Lines Matching full:digest
242 * Load the contents of the PE binary into the digest, leaving out the image
252 /* Digest the header and data directory, but leave out the image in pefile_digest_pe_contents()
319 * Digest the contents of the PE binary, leaving out the image checksum and the
328 void *digest; in pefile_digest_pe() local
344 pr_warn("Digest size mismatch (%zx != %x)\n", in pefile_digest_pe()
349 pr_debug("Digest: desc=%zu size=%zu\n", desc_size, digest_size); in pefile_digest_pe()
365 digest = (void *)desc + desc_size; in pefile_digest_pe()
366 ret = crypto_shash_final(desc, digest); in pefile_digest_pe()
370 pr_debug("Digest calc = [%*ph]\n", ctx->digest_len, digest); in pefile_digest_pe()
372 /* Check that the PE file digest matches that in the MSCODE part of the in pefile_digest_pe()
375 if (memcmp(digest, ctx->digest, ctx->digest_len) != 0) { in pefile_digest_pe()
376 pr_warn("Digest mismatch\n"); in pefile_digest_pe()
445 pr_debug("Digest: %u [%*ph]\n", in verify_pefile_signature()
446 ctx.digest_len, ctx.digest_len, ctx.digest); in verify_pefile_signature()
448 /* Generate the digest and check against the PKCS7 certificate in verify_pefile_signature()
454 kfree_sensitive(ctx.digest); in verify_pefile_signature()