]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: signature: export efi_hash_regions()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 5 Jul 2022 05:48:12 +0000 (14:48 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 5 Jul 2022 12:37:16 +0000 (14:37 +0200)
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>
include/efi_loader.h
lib/efi_loader/efi_signature.c

index c1e00ebac398c4372f3b689e5d7347f22c72e03a..11930fbea8389cbe20a56eb4cf39ed65f83cfb72 100644 (file)
@@ -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);
index ddac751d128e16cbfb5c633c39d38748f68eab57..742d8919402c74ce7279040aa1a12ba12a60b47b 100644 (file)
@@ -125,8 +125,8 @@ struct pkcs7_message *efi_parse_pkcs7_header(const void *buf,
  *
  * Return:     true on success, false on error
  */
-static bool efi_hash_regions(struct image_region *regs, int count,
-                            void **hash, const char *hash_algo, int *len)
+bool efi_hash_regions(struct image_region *regs, int count,
+                     void **hash, const char *hash_algo, int *len)
 {
        int ret, hash_len;