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>
This commit is contained in:
AKASHI Takahiro
2022-07-05 14:48:12 +09:00
committed by Heinrich Schuchardt
parent b124efc09f
commit b330140659
2 changed files with 4 additions and 2 deletions

View 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;