]>
git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Library/VariableKeyLibNull/VariableKeyLibNull.c
2 Null version of VariableKeyLib for build purpose. Don't use it in real product.
4 Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #include <Library/DebugLib.h>
9 #include <Library/VariableKeyLib.h>
12 Retrieves the key for integrity and/or confidentiality of variables.
14 @param[out] VariableKey A pointer to pointer for the variable key buffer.
15 @param[in,out] VariableKeySize The size in bytes of the variable key.
17 @retval EFI_SUCCESS The variable key was returned.
18 @retval EFI_DEVICE_ERROR An error occurred while attempting to get the variable key.
19 @retval EFI_ACCESS_DENIED The function was invoked after locking the key interface.
20 @retval EFI_UNSUPPORTED The variable key is not supported in the current boot configuration.
25 OUT VOID
**VariableKey
,
26 IN OUT UINTN
*VariableKeySize
30 return EFI_UNSUPPORTED
;
34 Regenerates the variable key.
36 @retval EFI_SUCCESS The variable key was regenerated successfully.
37 @retval EFI_DEVICE_ERROR An error occurred while attempting to regenerate the key.
38 @retval EFI_ACCESS_DENIED The function was invoked after locking the key interface.
39 @retval EFI_UNSUPPORTED Key regeneration is not supported in the current boot configuration.
43 RegenerateVariableKey (
48 return EFI_UNSUPPORTED
;
52 Locks the regenerate key interface.
54 @retval EFI_SUCCESS The key interface was locked successfully.
55 @retval EFI_UNSUPPORTED Locking the key interface is not supported in the current boot configuration.
56 @retval Others An error occurred while attempting to lock the key interface.
60 LockVariableKeyInterface (
65 return EFI_UNSUPPORTED
;