| Previous | Next |
| TPM_E_SHORTRANDOM | TPM_E_WRONGPCRVAL |
TPM_E_SIZE
TPM_E_SIZE means the TPM 1.2 did not have the space required to perform the operation. This result is broader than a Windows allocation failure: it refers to the capacity available within the TPM operation’s constraints.
Do not collapse it into TPM_E_NOSPACE. The latter specifically says there is no room to load a key; TPM_E_SIZE can arise in a different command path where the requested action needs capacity that is not available.
How to narrow it down
- Record the exact command, its declared sizes, and whether the operation creates, loads, seals, migrates, or returns an object.
- Check for prior context or resource pressure that can be released through the supported TPM 1.2 lifecycle APIs.
- For serialized input, separately validate parameter lengths.
TPM_E_BAD_PARAM_SIZEmeans the command header is inconsistent, whereasTPM_E_SIZEconcerns available execution capacity.
References
- Microsoft: TPM HRESULT values in Winerror.h
- TCG TPM 1.2 Part 2: Structures
- TCG TPM 1.2 Part 3: Commands
Looking for a different code? Search another status or error code.