SecurityPkg[all]
0.98
|
Functions | |
EFI_STATUS EFIAPI | RequestMonotonicCounter (OUT UINT32 *CounterValue) |
EFI_STATUS EFIAPI | IncrementMonotonicCounter (VOID) |
Public definitions for the Replay Protected Monotonic Counter (RPMC) Library.
Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
EFI_STATUS EFIAPI IncrementMonotonicCounter | ( | VOID | ) |
Increments the monotonic counter in the SPI flash device by 1.
EFI_SUCCESS | The operation completed successfully. |
EFI_DEVICE_ERROR | A device error occurred while attempting to update the counter. |
EFI_UNSUPPORTED | The operation is un-supported. |
EFI_STATUS EFIAPI RequestMonotonicCounter | ( | OUT UINT32 * | CounterValue | ) |
Requests the monotonic counter from the designated RPMC counter.
[out] | CounterValue | A pointer to a buffer to store the RPMC value. |
EFI_SUCCESS | The operation completed successfully. |
EFI_DEVICE_ERROR | A device error occurred while attempting to update the counter. |
EFI_UNSUPPORTED | The operation is un-supported. |