]>
git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Include/Library/RpmcLib.h
2 Public definitions for the Replay Protected Monotonic Counter (RPMC) Library.
4 Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
12 #include <Uefi/UefiBaseType.h>
15 Requests the monotonic counter from the designated RPMC counter.
17 @param[out] CounterValue A pointer to a buffer to store the RPMC value.
19 @retval EFI_SUCCESS The operation completed successfully.
20 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.
21 @retval EFI_UNSUPPORTED The operation is un-supported.
25 RequestMonotonicCounter (
26 OUT UINT32
*CounterValue
30 Increments the monotonic counter in the SPI flash device by 1.
32 @retval EFI_SUCCESS The operation completed successfully.
33 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.
34 @retval EFI_UNSUPPORTED The operation is un-supported.
38 IncrementMonotonicCounter (