]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/VariableKeyLibNull/VariableKeyLibNull.c
SecurityPkg: deprecate RpmcLib and VariableKeyLib
[mirror_edk2.git] / SecurityPkg / Library / VariableKeyLibNull / VariableKeyLibNull.c
diff --git a/SecurityPkg/Library/VariableKeyLibNull/VariableKeyLibNull.c b/SecurityPkg/Library/VariableKeyLibNull/VariableKeyLibNull.c
deleted file mode 100644 (file)
index a08def7..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/** @file\r
-  Null version of VariableKeyLib for build purpose. Don't use it in real product.\r
-\r
-Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
-SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-#include <Library/DebugLib.h>\r
-#include <Library/VariableKeyLib.h>\r
-\r
-/**\r
-  Retrieves the key for integrity and/or confidentiality of variables.\r
-\r
-  @param[out]     VariableKey         A pointer to pointer for the variable key buffer.\r
-  @param[in,out]  VariableKeySize     The size in bytes of the variable key.\r
-\r
-  @retval       EFI_SUCCESS             The variable key was returned.\r
-  @retval       EFI_DEVICE_ERROR        An error occurred while attempting to get the variable key.\r
-  @retval       EFI_ACCESS_DENIED       The function was invoked after locking the key interface.\r
-  @retval       EFI_UNSUPPORTED         The variable key is not supported in the current boot configuration.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-GetVariableKey (\r
-  OUT VOID       **VariableKey,\r
-  IN  OUT UINTN  *VariableKeySize\r
-  )\r
-{\r
-  ASSERT (FALSE);\r
-  return EFI_UNSUPPORTED;\r
-}\r
-\r
-/**\r
-  Regenerates the variable key.\r
-\r
-  @retval       EFI_SUCCESS             The variable key was regenerated successfully.\r
-  @retval       EFI_DEVICE_ERROR        An error occurred while attempting to regenerate the key.\r
-  @retval       EFI_ACCESS_DENIED       The function was invoked after locking the key interface.\r
-  @retval       EFI_UNSUPPORTED         Key regeneration is not supported in the current boot configuration.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-RegenerateVariableKey (\r
-  VOID\r
-  )\r
-{\r
-  ASSERT (FALSE);\r
-  return EFI_UNSUPPORTED;\r
-}\r
-\r
-/**\r
-  Locks the regenerate key interface.\r
-\r
-  @retval       EFI_SUCCESS             The key interface was locked successfully.\r
-  @retval       EFI_UNSUPPORTED         Locking the key interface is not supported in the current boot configuration.\r
-  @retval       Others                  An error occurred while attempting to lock the key interface.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-LockVariableKeyInterface (\r
-  VOID\r
-  )\r
-{\r
-  ASSERT (FALSE);\r
-  return EFI_UNSUPPORTED;\r
-}\r