summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2022-07-05 14:48:12 +0900
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-07-05 14:37:16 +0200
commitb330140659eab02c31236dd1925e1c573d503a03 (patch)
tree18b49b04c5a6cb2c366fca96e88f7eaff779c99c /include/efi_loader.h
parentb124efc09fc5f62cc2e17d956ba3c5c9168738e8 (diff)
efi_loader: signature: export efi_hash_regions()
This function is used to calculate a message digest as part of authentication process in a later patch. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index c1e00ebac3..11930fbea8 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -931,6 +931,8 @@ struct efi_signature_store {
struct x509_certificate;
struct pkcs7_message;
+bool efi_hash_regions(struct image_region *regs, int count,
+ void **hash, const char *hash_algo, int *len);
bool efi_signature_lookup_digest(struct efi_image_regions *regs,
struct efi_signature_store *db,
bool dbx);