Home | History | Annotate | Download | only in trunks

Lines Matching refs:TPM_RC

22 #include "trunks/tpm_generated.h"  // For TPM_RC.
27 // Use the TPM_RC type but with different layer bits (12 - 15). Choose the layer
32 const TPM_RC kTrunksErrorBase = (7 << 12);
33 const TPM_RC kTctiErrorBase = (8 << 12);
34 const TPM_RC kSapiErrorBase = (9 << 12);
35 const TPM_RC kResourceManagerTpmErrorBase = (11 << 12);
36 const TPM_RC kResourceManagerErrorBase = (12 << 12);
38 const TPM_RC TRUNKS_RC_AUTHORIZATION_FAILED = kTrunksErrorBase + 1;
39 const TPM_RC TRUNKS_RC_ENCRYPTION_FAILED = kTrunksErrorBase + 2;
40 const TPM_RC TRUNKS_RC_READ_ERROR = kTrunksErrorBase + 3;
41 const TPM_RC TRUNKS_RC_WRITE_ERROR = kTrunksErrorBase + 4;
42 const TPM_RC TRUNKS_RC_IPC_ERROR = kTrunksErrorBase + 5;
43 const TPM_RC TRUNKS_RC_SESSION_SETUP_ERROR = kTrunksErrorBase + 6;
45 const TPM_RC TCTI_RC_TRY_AGAIN = kTctiErrorBase + 1;
46 const TPM_RC TCTI_RC_GENERAL_FAILURE = kTctiErrorBase + 2;
47 const TPM_RC TCTI_RC_BAD_CONTEXT = kTctiErrorBase + 3;
48 const TPM_RC TCTI_RC_WRONG_ABI_VERSION = kTctiErrorBase + 4;
49 const TPM_RC TCTI_RC_NOT_IMPLEMENTED = kTctiErrorBase + 5;
50 const TPM_RC TCTI_RC_BAD_PARAMETER = kTctiErrorBase + 6;
51 const TPM_RC TCTI_RC_INSUFFICIENT_BUFFER = kTctiErrorBase + 7;
52 const TPM_RC TCTI_RC_NO_CONNECTION = kTctiErrorBase + 8;
53 const TPM_RC TCTI_RC_DRIVER_NOT_FOUND = kTctiErrorBase + 9;
54 const TPM_RC TCTI_RC_DRIVERINFO_NOT_FOUND = kTctiErrorBase + 10;
55 const TPM_RC TCTI_RC_NO_RESPONSE = kTctiErrorBase + 11;
56 const TPM_RC TCTI_RC_BAD_VALUE = kTctiErrorBase + 12;
58 const TPM_RC SAPI_RC_INVALID_SESSIONS = kSapiErrorBase + 1;
59 const TPM_RC SAPI_RC_ABI_MISMATCH = kSapiErrorBase + 2;
60 const TPM_RC SAPI_RC_INSUFFICIENT_BUFFER = kSapiErrorBase + 3;
61 const TPM_RC SAPI_RC_BAD_PARAMETER = kSapiErrorBase + 4;
62 const TPM_RC SAPI_RC_BAD_SEQUENCE = kSapiErrorBase + 5;
63 const TPM_RC SAPI_RC_NO_DECRYPT_PARAM = kSapiErrorBase + 6;
64 const TPM_RC SAPI_RC_NO_ENCRYPT_PARAM = kSapiErrorBase + 7;
65 const TPM_RC SAPI_RC_NO_RESPONSE_RECEIVED = kSapiErrorBase + 8;
66 const TPM_RC SAPI_RC_BAD_SIZE = kSapiErrorBase + 9;
67 const TPM_RC SAPI_RC_CORRUPTED_DATA = kSapiErrorBase + 10;
68 const TPM_RC SAPI_RC_INSUFFICIENT_CONTEXT = kSapiErrorBase + 11;
69 const TPM_RC SAPI_RC_INSUFFICIENT_RESPONSE = kSapiErrorBase + 12;
70 const TPM_RC SAPI_RC_INCOMPATIBLE_TCTI = kSapiErrorBase + 13;
71 const TPM_RC SAPI_RC_MALFORMED_RESPONSE = kSapiErrorBase + 14;
72 const TPM_RC SAPI_RC_BAD_TCTI_STRUCTURE = kSapiErrorBase + 15;
75 TRUNKS_EXPORT std::string GetErrorString(TPM_RC error);
81 TRUNKS_EXPORT TPM_RC GetFormatOneError(TPM_RC error);
84 TRUNKS_EXPORT std::string CreateErrorResponse(TPM_RC error_code);