]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c
SecurityPkg: Apply uncrustify changes
[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[out] CounterValue A pointer to a buffer to store the RPMC value.
16
17 @retval EFI_SUCCESS The operation completed successfully.
18 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.
19 @retval EFI_UNSUPPORTED The operation is un-supported.
20 **/
21 EFI_STATUS
22 EFIAPI
23 RequestMonotonicCounter (
24 OUT UINT32 *CounterValue
25 )
26 {
27 ASSERT (FALSE);
28 return EFI_UNSUPPORTED;
29 }
30
31 /**
32 Increments the monotonic counter in the SPI flash device by 1.
33
34 @retval EFI_SUCCESS The operation completed successfully.
35 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.
36 @retval EFI_UNSUPPORTED The operation is un-supported.
37 **/
38 EFI_STATUS
39 EFIAPI
40 IncrementMonotonicCounter (
41 VOID
42 )
43 {
44 ASSERT (FALSE);
45 return EFI_UNSUPPORTED;
46 }