mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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>
|
||
|---|---|---|
| .. | ||
| Tpm2Capability.c | ||
| Tpm2CommandLib.inf | ||
| Tpm2CommandLib.uni | ||
| Tpm2Context.c | ||
| Tpm2DictionaryAttack.c | ||
| Tpm2EnhancedAuthorization.c | ||
| Tpm2Help.c | ||
| Tpm2Hierarchy.c | ||
| Tpm2Integrity.c | ||
| Tpm2Miscellaneous.c | ||
| Tpm2NVStorage.c | ||
| Tpm2Object.c | ||
| Tpm2Sequences.c | ||
| Tpm2Session.c | ||
| Tpm2Startup.c | ||
| Tpm2Test.c | ||