Searched refs:pebuf (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/crypto/asymmetric_keys/ |
H A D | verify_pefile.c | 26 static int pefile_parse_binary(const void *pebuf, unsigned int pelen, pefile_parse_binary() argument 29 const struct mz_hdr *mz = pebuf; pefile_parse_binary() 52 pe = pebuf + mz->peaddr; pefile_parse_binary() 58 pe32 = pebuf + cursor; pefile_parse_binary() 59 pe64 = pebuf + cursor; pefile_parse_binary() 65 (unsigned long)&pe32->csum - (unsigned long)pebuf; pefile_parse_binary() 74 (unsigned long)&pe64->csum - (unsigned long)pebuf; pefile_parse_binary() 94 ddir = pebuf + cursor; pefile_parse_binary() 98 (unsigned long)&ddir->certs - (unsigned long)pebuf; pefile_parse_binary() 112 ctx->sig_len, pebuf + ctx->sig_offset); pefile_parse_binary() 117 ctx->secs = secs = pebuf + cursor; pefile_parse_binary() 126 static int pefile_strip_sig_wrapper(const void *pebuf, pefile_strip_sig_wrapper() argument 138 memcpy(&wrapper, pebuf + ctx->sig_offset, sizeof(wrapper)); pefile_strip_sig_wrapper() 172 pkcs7 = pebuf + ctx->sig_offset; pefile_strip_sig_wrapper() 245 static int pefile_digest_pe_contents(const void *pebuf, unsigned int pelen, pefile_digest_pe_contents() argument 255 ret = crypto_shash_update(desc, pebuf, ctx->image_checksum_offset); pefile_digest_pe_contents() 260 ret = crypto_shash_update(desc, pebuf + tmp, pefile_digest_pe_contents() 266 ret = crypto_shash_update(desc, pebuf + tmp, ctx->header_size - tmp); pefile_digest_pe_contents() 296 pebuf + ctx->secs[i].data_addr, pefile_digest_pe_contents() 309 pebuf + hashed_bytes, pefile_digest_pe_contents() 322 static int pefile_digest_pe(const void *pebuf, unsigned int pelen, pefile_digest_pe() argument 362 ret = pefile_digest_pe_contents(pebuf, pelen, ctx, desc); pefile_digest_pe() 393 * @pebuf: Buffer containing the PE binary image 419 int verify_pefile_signature(const void *pebuf, unsigned pelen, verify_pefile_signature() argument 431 ret = pefile_parse_binary(pebuf, pelen, &ctx); verify_pefile_signature() 435 ret = pefile_strip_sig_wrapper(pebuf, &ctx); verify_pefile_signature() 439 pkcs7 = pkcs7_parse_message(pebuf + ctx.sig_offset, ctx.sig_len); verify_pefile_signature() 461 ret = pefile_digest_pe(pebuf, pelen, &ctx); verify_pefile_signature()
|
/linux-4.1.27/include/linux/ |
H A D | verify_pefile.h | 15 extern int verify_pefile_signature(const void *pebuf, unsigned pelen,
|
Completed in 87 milliseconds