]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Include/Library/BlobVerifierLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / Include / Library / BlobVerifierLib.h
1 /** @file
2
3 Blob verification library
4
5 This library class allows verifiying whether blobs from external sources
6 (such as QEMU's firmware config) are trusted.
7
8 Copyright (C) 2021, IBM Corporation
9
10 SPDX-License-Identifier: BSD-2-Clause-Patent
11 **/
12
13 #ifndef BLOB_VERIFIER_LIB_H_
14 #define BLOB_VERIFIER_LIB_H_
15
16 #include <Uefi/UefiBaseType.h>
17 #include <Base.h>
18
19 /**
20 Verify blob from an external source.
21
22 @param[in] BlobName The name of the blob
23 @param[in] Buf The data of the blob
24 @param[in] BufSize The size of the blob in bytes
25
26 @retval EFI_SUCCESS The blob was verified successfully.
27 @retval EFI_ACCESS_DENIED The blob could not be verified, and therefore
28 should be considered non-secure.
29 **/
30 EFI_STATUS
31 EFIAPI
32 VerifyBlob (
33 IN CONST CHAR16 *BlobName,
34 IN CONST VOID *Buf,
35 IN UINT32 BufSize
36 );
37
38 #endif