mirror of
https://xff.cz/git/u-boot/
synced 2025-09-27 05:21:16 +02:00
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:
committed by
Heinrich Schuchardt
parent
b124efc09f
commit
b330140659
@@ -931,6 +931,8 @@ struct efi_signature_store {
|
|||||||
struct x509_certificate;
|
struct x509_certificate;
|
||||||
struct pkcs7_message;
|
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,
|
bool efi_signature_lookup_digest(struct efi_image_regions *regs,
|
||||||
struct efi_signature_store *db,
|
struct efi_signature_store *db,
|
||||||
bool dbx);
|
bool dbx);
|
||||||
|
@@ -125,8 +125,8 @@ struct pkcs7_message *efi_parse_pkcs7_header(const void *buf,
|
|||||||
*
|
*
|
||||||
* Return: true on success, false on error
|
* Return: true on success, false on error
|
||||||
*/
|
*/
|
||||||
static bool efi_hash_regions(struct image_region *regs, int count,
|
bool efi_hash_regions(struct image_region *regs, int count,
|
||||||
void **hash, const char *hash_algo, int *len)
|
void **hash, const char *hash_algo, int *len)
|
||||||
{
|
{
|
||||||
int ret, hash_len;
|
int ret, hash_len;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user