| /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| * Copyright (C) 2014 Red Hat, Inc. All Rights Reserved. |
| * Written by David Howells (dhowells@redhat.com) |
| #include <crypto/pkcs7.h> |
| #include <crypto/hash_info.h> |
| unsigned image_checksum_offset; |
| unsigned cert_dirent_offset; |
| const struct section_header *secs; |
| /* PKCS#7 MS Individual Code Signing content */ |
| const void *digest; /* Digest */ |
| unsigned digest_len; /* Digest length */ |
| const char *digest_algo; /* Digest algorithm */ |
| #define kenter(FMT, ...) \ |
| pr_devel("==> %s("FMT")\n", __func__, ##__VA_ARGS__) |
| #define kleave(FMT, ...) \ |
| pr_devel("<== %s()"FMT"\n", __func__, ##__VA_ARGS__) |
| extern int mscode_parse(void *_ctx, const void *content_data, size_t data_len, |