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