Blame view
crypto/asymmetric_keys/verify_pefile.h
979 Bytes
b4d0d230c treewide: Replace... |
1 |
/* SPDX-License-Identifier: GPL-2.0-or-later */ |
26d1164be pefile: Parse a P... |
2 3 4 5 |
/* PE Binary parser bits * * Copyright (C) 2014 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) |
26d1164be pefile: Parse a P... |
6 |
*/ |
26d1164be pefile: Parse a P... |
7 8 9 10 11 12 13 14 15 16 17 18 19 |
#include <crypto/pkcs7.h> #include <crypto/hash_info.h> struct pefile_context { unsigned header_size; unsigned image_checksum_offset; unsigned cert_dirent_offset; unsigned n_data_dirents; unsigned n_sections; unsigned certs_size; unsigned sig_offset; unsigned sig_len; const struct section_header *secs; |
26d1164be pefile: Parse a P... |
20 21 22 23 |
/* PKCS#7 MS Individual Code Signing content */ const void *digest; /* Digest */ unsigned digest_len; /* Digest length */ |
4e8ae72a7 X.509: Make algo ... |
24 |
const char *digest_algo; /* Digest algorithm */ |
26d1164be pefile: Parse a P... |
25 26 27 28 29 30 31 32 |
}; #define kenter(FMT, ...) \ pr_devel("==> %s("FMT") ", __func__, ##__VA_ARGS__) #define kleave(FMT, ...) \ pr_devel("<== %s()"FMT" ", __func__, ##__VA_ARGS__) |
4c0b4b1d1 pefile: Parse the... |
33 34 35 36 |
/* * mscode_parser.c */ |
e68503bd6 KEYS: Generalise ... |
37 38 |
extern int mscode_parse(void *_ctx, const void *content_data, size_t data_len, size_t asn1hdrlen); |