SecurityPkg[all]  0.98
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RpmcLib.h File Reference

Functions

EFI_STATUS EFIAPI RequestMonotonicCounter (OUT UINT32 *CounterValue)
 
EFI_STATUS EFIAPI IncrementMonotonicCounter (VOID)
 

Detailed Description

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

Function Documentation

EFI_STATUS EFIAPI IncrementMonotonicCounter ( VOID  )

Increments the monotonic counter in the SPI flash device by 1.

Return values
EFI_SUCCESSThe operation completed successfully.
EFI_DEVICE_ERRORA device error occurred while attempting to update the counter.
EFI_UNSUPPORTEDThe operation is un-supported.
EFI_STATUS EFIAPI RequestMonotonicCounter ( OUT UINT32 *  CounterValue)

Requests the monotonic counter from the designated RPMC counter.

Parameters
[out]CounterValueA pointer to a buffer to store the RPMC value.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_DEVICE_ERRORA device error occurred while attempting to update the counter.
EFI_UNSUPPORTEDThe operation is un-supported.