edk2/SecurityPkg/Library/Tpm2CommandLib
Michael Kubacki 8682d3ea0a SecurityPkg/Tpm2CommandLib: Update not found RC for Public NV Read
Currently a EFI_DEVICE_ERROR is returned if `TPM_RC_HANDLE` is the
return code from a TPM2_NV_ReadPublic command. However, in the TCG
TPM Library Part 3: Commands specification, `TPM_RC_HANDLE` is a
return code if:

  1. An Index does not exist that corresponds to the handle
     (TPM_RC_HANDLE)
  2. The hierarchy associated with the existing NV Index is not
     enabled (TPM_RC_HANDLE)

Therefore, return EFI_NOT_FOUND in this case, since that more
precisely allows a caller to identify this condition and act on
it as opposed to a more generic device error.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
2025-08-23 00:48:06 +00:00
..
Tpm2Capability.c SecurityPkg: Remove/Downgrade Noisy TCG Prints 2025-07-14 07:25:12 +00:00
Tpm2CommandLib.inf SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tpm2CommandLib.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tpm2Context.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2DictionaryAttack.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2EnhancedAuthorization.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2Help.c SecurityPkg/Tpm2CommandLib: Add new digest list copy and size functions 2025-06-13 17:42:43 +00:00
Tpm2Hierarchy.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2Integrity.c SecurityPkg: Move Noisy Logs to DEBUG_SECURITY 2025-07-14 07:25:12 +00:00
Tpm2Miscellaneous.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2NVStorage.c SecurityPkg/Tpm2CommandLib: Update not found RC for Public NV Read 2025-08-23 00:48:06 +00:00
Tpm2Object.c SecurityPkg/Library/TpmCommandLib: Change xor to xor_ 2024-12-03 06:25:32 +00:00
Tpm2Sequences.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2Session.c SecurityPkg/Library/TpmCommandLib: Change xor to xor_ 2024-12-03 06:25:32 +00:00
Tpm2Startup.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2Test.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00