]>
Commit | Line | Data |
---|---|---|
5042ee43 JW |
1 | /** @file\r |
2 | Public definitions for the Replay Protected Monotonic Counter (RPMC) Library.\r | |
3 | \r | |
4 | Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-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 | |
23 | EFI_STATUS\r | |
24 | EFIAPI\r | |
25 | RequestMonotonicCounter (\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 | |
36 | EFI_STATUS\r | |
37 | EFIAPI\r | |
38 | IncrementMonotonicCounter (\r | |
e9d62eff | 39 | VOID\r |
5042ee43 JW |
40 | );\r |
41 | \r | |
42 | #endif\r | |
43 | \r |