TianoCore EDK2 master
Loading...
Searching...
No Matches
BlobVerifierLib.h File Reference
#include <Uefi/UefiBaseType.h>
#include <Base.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI VerifyBlob (IN CONST CHAR16 *BlobName, IN CONST VOID *Buf, IN UINT32 BufSize, IN EFI_STATUS FetchStatus)
 

Detailed Description

Blob verification library

This library class allows verifiying whether blobs from external sources (such as QEMU's firmware config) are trusted.

Copyright (C) 2021, IBM Corporation

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file BlobVerifierLib.h.

Function Documentation

◆ VerifyBlob()

EFI_STATUS EFIAPI VerifyBlob ( IN CONST CHAR16 *  BlobName,
IN CONST VOID *  Buf,
IN UINT32  BufSize,
IN EFI_STATUS  FetchStatus 
)

Verify blob from an external source.

Parameters
[in]BlobNameThe name of the blob
[in]BufThe data of the blob
[in]BufSizeThe size of the blob in bytes
[in]FetchStatusThe status of fetching this blob
Return values
EFI_SUCCESSThe blob was verified successfully or was not found in the hash table.
EFI_ACCESS_DENIEDKernel hashes not supported but the boot can continue safely.

Verify blob from an external source.

If a non-secure configuration is detected this function will enter a dead loop to prevent a boot.

Parameters
[in]BlobNameThe name of the blob
[in]BufThe data of the blob
[in]BufSizeThe size of the blob in bytes
[in]FetchStatusThe status of the previous blob fetch
Return values
EFI_SUCCESSThe blob was verified successfully or was not found in the hash table.
EFI_ACCESS_DENIEDKernel hashes not supported, but the boot can continue safely.

Verify blob from an external source.

Parameters
[in]BlobNameThe name of the blob
[in]BufThe data of the blob
[in]BufSizeThe size of the blob in bytes
[in]FetchStatusThe status of the fetch of this blob
Return values
EFI_SUCCESSThe blob was verified successfully or was not found in the hash table.
EFI_ACCESS_DENIEDKernel hashes not supported but the boot can continue safely.

Definition at line 95 of file BlobVerifierSevHashes.c.