| Previous | Next |
| TPM_E_RESOURCES | TPM_E_SIZE |
TPM_E_SHORTRANDOM
TPM_E_SHORTRANDOM is the legacy TPM 1.2 result whose Windows definition says that a random string was too short. Treat it as a value-length problem in a specific TPM command flow, not as proof that every random value from the platform is predictable or that a network source failed.
TPM protocols use nonces and random values as inputs to authorization and cryptographic operations. TPM 1.2 TPM_GetRandom can legally return fewer bytes than requested and reports the actual count, so collect the surrounding command and length handling before attributing this status to that API alone.
Diagnostic checks
- Capture the requested and returned byte counts, along with the command that consumed the random value.
- Verify buffer-length handling and the client library’s TPM 1.2 structure definitions.
- Do not pad a short result with zeros or reused bytes. Generate or request new data through the documented TPM or cryptographic-provider path.
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.