]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Include/Library/RpmcLib.h
SecurityPkg: add RpmcLib and VariableKeyLib public headers
[mirror_edk2.git] / SecurityPkg / Include / Library / RpmcLib.h
CommitLineData
5042ee43
JW
1/** @file\r
2 Public definitions for the Replay Protected Monotonic Counter (RPMC) Library.\r
3\r
4Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9#ifndef _RPMC_LIB_H_\r
10#define _RPMC_LIB_H_\r
11\r
12#include <Uefi/UefiBaseType.h>\r
13\r
14/**\r
15 Requests the monotonic counter from the designated RPMC counter.\r
16\r
17 @param[out] CounterValue A pointer to a buffer to store the RPMC value.\r
18\r
19 @retval EFI_SUCCESS The operation completed successfully.\r
20 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.\r
21 @retval EFI_UNSUPPORTED The operation is un-supported.\r
22**/\r
23EFI_STATUS\r
24EFIAPI\r
25RequestMonotonicCounter (\r
26 OUT UINT32 *CounterValue\r
27 );\r
28\r
29/**\r
30 Increments the monotonic counter in the SPI flash device by 1.\r
31\r
32 @retval EFI_SUCCESS The operation completed successfully.\r
33 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.\r
34 @retval EFI_UNSUPPORTED The operation is un-supported.\r
35**/\r
36EFI_STATUS\r
37EFIAPI\r
38IncrementMonotonicCounter (\r
39 VOID\r
40 );\r
41\r
42#endif\r
43\r