]>
Commit | Line | Data |
---|---|---|
6e9bd495 JW |
1 | /** @file\r |
2 | Null version of VariableKeyLib for build purpose. Don't use it in real product.\r | |
3 | \r | |
4 | Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | #include <Library/DebugLib.h>\r | |
9 | #include <Library/VariableKeyLib.h>\r | |
10 | \r | |
11 | /**\r | |
12 | Retrieves the key for integrity and/or confidentiality of variables.\r | |
13 | \r | |
14 | @param[out] VariableKey A pointer to pointer for the variable key buffer.\r | |
15 | @param[in,out] VariableKeySize The size in bytes of the variable key.\r | |
16 | \r | |
17 | @retval EFI_SUCCESS The variable key was returned.\r | |
18 | @retval EFI_DEVICE_ERROR An error occurred while attempting to get the variable key.\r | |
19 | @retval EFI_ACCESS_DENIED The function was invoked after locking the key interface.\r | |
20 | @retval EFI_UNSUPPORTED The variable key is not supported in the current boot configuration.\r | |
21 | **/\r | |
22 | EFI_STATUS\r | |
23 | EFIAPI\r | |
24 | GetVariableKey (\r | |
c411b485 MK |
25 | OUT VOID **VariableKey,\r |
26 | IN OUT UINTN *VariableKeySize\r | |
6e9bd495 JW |
27 | )\r |
28 | {\r | |
29 | ASSERT (FALSE);\r | |
30 | return EFI_UNSUPPORTED;\r | |
31 | }\r | |
32 | \r | |
33 | /**\r | |
34 | Regenerates the variable key.\r | |
35 | \r | |
36 | @retval EFI_SUCCESS The variable key was regenerated successfully.\r | |
37 | @retval EFI_DEVICE_ERROR An error occurred while attempting to regenerate the key.\r | |
38 | @retval EFI_ACCESS_DENIED The function was invoked after locking the key interface.\r | |
39 | @retval EFI_UNSUPPORTED Key regeneration is not supported in the current boot configuration.\r | |
40 | **/\r | |
41 | EFI_STATUS\r | |
42 | EFIAPI\r | |
43 | RegenerateVariableKey (\r | |
44 | VOID\r | |
45 | )\r | |
46 | {\r | |
47 | ASSERT (FALSE);\r | |
48 | return EFI_UNSUPPORTED;\r | |
49 | }\r | |
50 | \r | |
51 | /**\r | |
52 | Locks the regenerate key interface.\r | |
53 | \r | |
54 | @retval EFI_SUCCESS The key interface was locked successfully.\r | |
55 | @retval EFI_UNSUPPORTED Locking the key interface is not supported in the current boot configuration.\r | |
56 | @retval Others An error occurred while attempting to lock the key interface.\r | |
57 | **/\r | |
58 | EFI_STATUS\r | |
59 | EFIAPI\r | |
60 | LockVariableKeyInterface (\r | |
61 | VOID\r | |
62 | )\r | |
63 | {\r | |
64 | ASSERT (FALSE);\r | |
65 | return EFI_UNSUPPORTED;\r | |
66 | }\r |