]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c
697e493a7cea8e7802babe7c50fa6e3ceebd3007
[mirror_edk2.git] / SecurityPkg / Library / RpmcLibNull / RpmcLibNull.c
1 /** @file
2 NULL RpmcLib instance for build purpose.
3
4 Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <Library/DebugLib.h>
10 #include <Library/RpmcLib.h>
11
12 /**
13 Requests the monotonic counter from the designated RPMC counter.
14
15 @param[in] CounterIndex The RPMC index
16 @param[out] CounterValue A pointer to a buffer to store the RPMC value.
17
18 @retval EFI_SUCCESS The operation completed successfully.
19 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.
20 @retval EFI_UNSUPPORTED The operation is un-supported.
21 **/
22 EFI_STATUS
23 EFIAPI
24 RequestMonotonicCounter (
25 IN UINT8 CounterIndex,
26 OUT UINT32 *CounterValue
27 )
28 {
29 ASSERT (FALSE);
30 return EFI_UNSUPPORTED;
31 }
32
33 /**
34 Increments the monotonic counter in the SPI flash device by 1.
35
36 @param[in] CounterIndex The RPMC index
37
38 @retval EFI_SUCCESS The operation completed successfully.
39 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.
40 @retval EFI_UNSUPPORTED The operation is un-supported.
41 **/
42 EFI_STATUS
43 EFIAPI
44 IncrementMonotonicCounter (
45 IN UINT8 CounterIndex
46 )
47 {
48 ASSERT (FALSE);
49 return EFI_UNSUPPORTED;
50 }
51