iaik.tc.tss.api.constants.tsp
Class TcTssErrors

Object
  extended by TcTssErrors

public class TcTssErrors
extends Object

This class contains TSP level error codes.


Field Summary
static long FACILITY_TSS
          facility number for TCPA return codes
static long FACILITY_TSS_CODEPOS
          shift the facility info to the code position
static long TSS_COMMON_OFFSET
           
static long TSS_CUSTOM_CODEFLAG
          bit position for the custom flag in return code
static long TSS_E_BAD_PARAMETER
          One or more parameter is bad.
static long TSS_E_BASE
          TSS error return codes
static long TSS_E_CANCELED
          The action was canceled by request.
static long TSS_E_COMM_FAILURE
          A communications error with the TPM has been detected.
static long TSS_E_CONNECTION_BROKEN
          Communication with Core Service failed.
static long TSS_E_CONNECTION_FAILED
          Core Service connection failed.
static long TSS_E_DAA_AR_DECRYPTION_ERROR
          Decryption of the encrypted pseudonym has failed, due to either a wrong secret key or a wrong decryption condition.
static long TSS_E_DAA_AUTHENTICATION_ERROR
          The TPM could not be authenticated by the DAA Issuer.
static long TSS_E_DAA_CHALLENGE_RESPONSE_ERROR
          DAA Challenge response error.
static long TSS_E_DAA_CREDENTIAL_PROOF_ERROR
          Verification of the credential TSS_DAA_CRED_ISSUER issued by the DAA Issuer has failed.
static long TSS_E_DAA_CREDENTIAL_REQUEST_PROOF_ERROR
          Verification of the platform's credential request TSS_DAA_CREDENTIAL_REQUEST has failed.
static long TSS_E_DAA_ISSUER_KEY_ERROR
          DAA Issuer's authentication key chain could not be verified or is not correct.
static long TSS_E_DAA_PSEUDONYM_ERROR
          While verifying the pseudonym of the TPM, the private key of the TPM was found on the rogue list.
static long TSS_E_DELEGATION_NOTSET
          The Policy object does not have a delegation blob set.
static long TSS_E_DELFAMILY_NOTFOUND
          The specified delegation family was not found
static long TSS_E_DELFAMILY_ROWEXISTS
          The specified delegation family table row is already in use and the command flags does not allow the TSS to overwrite the existing entry.
static long TSS_E_EK_CHECKSUM
          TSP is instructed to verify the EK checksum and it does not verify.
static long TSS_E_ENC_INVALID_LENGTH
          Invalid length for encrypted data object.
static long TSS_E_ENC_INVALID_TYPE
          Invalid type for encrypted data object.
static long TSS_E_ENC_NO_DATA
          Encrypted data object contains no data.
static long TSS_E_FAIL
          An internal error has been detected, but the source is unknown.
static long TSS_E_HASH_INVALID_ALG
          Invalid hash algorithm.
static long TSS_E_HASH_INVALID_LENGTH
          Hash length is inconsistent with hash algorithm.
static long TSS_E_HASH_NO_DATA
          Hash object has no internal hash value.
static long TSS_E_HASH_NO_IDENTIFIER
          Hash algorithm identifier not set.
static long TSS_E_INTERNAL_ERROR
          An internal SW error has been detected.
static long TSS_E_INVALID_ATTRIB_DATA
          Data for attrib-functions invalid.
static long TSS_E_INVALID_ATTRIB_FLAG
          Flag value for attrib-functions inconsistent.
static long TSS_E_INVALID_ATTRIB_SUBFLAG
          Subflag value for attrib-functions inconsistent.
static long TSS_E_INVALID_ENCSCHEME
          Invalid encryption scheme.
static long TSS_E_INVALID_HANDLE
          An invalid handle
static long TSS_E_INVALID_KEYUSAGE
          Invalid usage of key.
static long TSS_E_INVALID_OBJ_ACCESS
          The operation failed due to an invalid object status.
static long TSS_E_INVALID_OBJECT_INIT_FLAG
          Wrong flag information for object creation.
static long TSS_E_INVALID_OBJECT_INITFLAG
           
static long TSS_E_INVALID_OBJECT_TYPE
          Object type not valid for this operation.
static long TSS_E_INVALID_RESOURCE
          Pointer to memory wrong.
static long TSS_E_INVALID_SIGSCHEME
          Invalid signature scheme.
static long TSS_E_KEY_ALREADY_REGISTERED
          Key is already registered
static long TSS_E_KEY_NO_MIGRATION_POLICY
          There's no migration policy object set for the addressed key.
static long TSS_E_KEY_NOT_LOADED
          The addressed key is currently not loaded.
static long TSS_E_KEY_NOT_SET
          No key information is currently available.
static long TSS_E_NO_ACTIVE_COUNTER
          The TPM active counter has not been set yet.^M
static long TSS_E_NO_CONNECTION
          Core Service connection doesn't exist.
static long TSS_E_NO_PCRS_SET
          No PCR register are selected or set.
static long TSS_E_NOTIMPL
          Not implemented.
static long TSS_E_NV_AREA_EXIST
          The NV area referenced already exists
static long TSS_E_NV_AREA_NOT_EXIST
          The NV area referenced doesn't exist
static long TSS_E_OUTOFMEMORY
          Ran out of memory.
static long TSS_E_POLICY_NO_SECRET
          No secret information is currently available for the addressed policy object.
static long TSS_E_PS_BAD_KEY_STATE
          The key data set not valid in the persistent storage database.
static long TSS_E_PS_KEY_EXISTS
          The key already exists in the persistent storage database.
static long TSS_E_PS_KEY_NOTFOUND
          The key cannot be found in the persistent storage database.
static long TSS_E_SILENT_CONTEXT
          A silent context requires user input
static long TSS_E_TIMEOUT
          The operation has timed out.
static long TSS_E_TPM_UNEXPECTED
          An unexpected TPM error has occurred.
static long TSS_E_TPM_UNSUPPORTED_FEATURE
          The TPM does not support the requested feature.
static long TSS_E_TSP_AUTH2FAIL
          Multiple authorization failed.
static long TSS_E_TSP_AUTH2REQUIRED
          Multiple authorization is required.
static long TSS_E_TSP_AUTHFAIL
          Authorization failed.
static long TSS_E_TSP_AUTHREQUIRED
          Authorization is required.
static long TSS_E_TSP_TRANS_AUTHFAIL
          The transport session authorization failed
static long TSS_E_TSP_TRANS_AUTHREQUIRED
          Authorization for transport is required
static long TSS_E_TSP_TRANS_FAIL
          Generic transport protection error.
static long TSS_E_TSP_TRANS_NO_PUBKEY
          A command could not be executed through a logged transport session because the command used a key and the key's public key is not known to the TSP.
static long TSS_E_TSP_TRANS_NOTEXCLUSIVE
          A command was executed outside of an exclusive transport session.
static long TSS_E_VALIDATION_FAILED
          Internal validation of data failed.
static long TSS_E_VERIFICATION_FAILED
          Internal validation of data failed.
static long TSS_E_VERSION_MISMATCH
          The specified delegation family table row is already in use and the command flags does not allow the TSS to overwrite the existing entry.
static long TSS_I_BASE
           
static long TSS_LAYER_TCS
          definition for TCS layer
static long TSS_LAYER_TDDL
          definition for TDDL layer
static long TSS_LAYER_TPM
          definition for TPM layer
static long TSS_LAYER_TSP
          definition for TSP layer
static long TSS_LEVEL_ERROR
           
static long TSS_LEVEL_INFO
           
static long TSS_LEVEL_SUCCESS
           
static long TSS_LEVEL_WARNING
           
static long TSS_MAX_ERROR
           
static long TSS_SUCCESS
          Successful completion of the operation.
static long TSS_TCSI_OFFSET
           
static long TSS_TDDL_OFFSET
           
static long TSS_TSPI_OFFSET
           
static long TSS_VENDOR_OFFSET
           
static long TSS_W_BASE
           
 
Method Summary
static String errToString(long errCode)
          This method returns an error message including the error code, the error type and the error message.
static String getErrMsg(long errCode)
          This method returns the error string for the given error code.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TSS_LAYER_TPM

public static final long TSS_LAYER_TPM
definition for TPM layer

See Also:
Constant Field Values

TSS_LAYER_TDDL

public static final long TSS_LAYER_TDDL
definition for TDDL layer

See Also:
Constant Field Values

TSS_LAYER_TCS

public static final long TSS_LAYER_TCS
definition for TCS layer

See Also:
Constant Field Values

TSS_LAYER_TSP

public static final long TSS_LAYER_TSP
definition for TSP layer

See Also:
Constant Field Values

TSS_COMMON_OFFSET

public static final long TSS_COMMON_OFFSET
See Also:
Constant Field Values

TSS_TDDL_OFFSET

public static final long TSS_TDDL_OFFSET
See Also:
Constant Field Values

TSS_TCSI_OFFSET

public static final long TSS_TCSI_OFFSET
See Also:
Constant Field Values

TSS_TSPI_OFFSET

public static final long TSS_TSPI_OFFSET
See Also:
Constant Field Values

TSS_VENDOR_OFFSET

public static final long TSS_VENDOR_OFFSET
See Also:
Constant Field Values

TSS_MAX_ERROR

public static final long TSS_MAX_ERROR
See Also:
Constant Field Values

TSS_LEVEL_SUCCESS

public static final long TSS_LEVEL_SUCCESS
See Also:
Constant Field Values

TSS_LEVEL_INFO

public static final long TSS_LEVEL_INFO
See Also:
Constant Field Values

TSS_LEVEL_WARNING

public static final long TSS_LEVEL_WARNING
See Also:
Constant Field Values

TSS_LEVEL_ERROR

public static final long TSS_LEVEL_ERROR
See Also:
Constant Field Values

FACILITY_TSS

public static final long FACILITY_TSS
facility number for TCPA return codes

See Also:
Constant Field Values

FACILITY_TSS_CODEPOS

public static final long FACILITY_TSS_CODEPOS
shift the facility info to the code position

See Also:
Constant Field Values

TSS_CUSTOM_CODEFLAG

public static final long TSS_CUSTOM_CODEFLAG
bit position for the custom flag in return code

See Also:
Constant Field Values

TSS_E_BASE

public static final long TSS_E_BASE
TSS error return codes

See Also:
Constant Field Values

TSS_W_BASE

public static final long TSS_W_BASE
See Also:
Constant Field Values

TSS_I_BASE

public static final long TSS_I_BASE
See Also:
Constant Field Values

TSS_SUCCESS

public static final long TSS_SUCCESS
Successful completion of the operation.

See Also:
Constant Field Values

TSS_E_FAIL

public static final long TSS_E_FAIL
An internal error has been detected, but the source is unknown.

See Also:
Constant Field Values

TSS_E_BAD_PARAMETER

public static final long TSS_E_BAD_PARAMETER
One or more parameter is bad.

See Also:
Constant Field Values

TSS_E_INTERNAL_ERROR

public static final long TSS_E_INTERNAL_ERROR
An internal SW error has been detected.

See Also:
Constant Field Values

TSS_E_OUTOFMEMORY

public static final long TSS_E_OUTOFMEMORY
Ran out of memory.

See Also:
Constant Field Values

TSS_E_NOTIMPL

public static final long TSS_E_NOTIMPL
Not implemented.

See Also:
Constant Field Values

TSS_E_KEY_ALREADY_REGISTERED

public static final long TSS_E_KEY_ALREADY_REGISTERED
Key is already registered

See Also:
Constant Field Values

TSS_E_TPM_UNEXPECTED

public static final long TSS_E_TPM_UNEXPECTED
An unexpected TPM error has occurred.

See Also:
Constant Field Values

TSS_E_COMM_FAILURE

public static final long TSS_E_COMM_FAILURE
A communications error with the TPM has been detected.

See Also:
Constant Field Values

TSS_E_TIMEOUT

public static final long TSS_E_TIMEOUT
The operation has timed out.

See Also:
Constant Field Values

TSS_E_TPM_UNSUPPORTED_FEATURE

public static final long TSS_E_TPM_UNSUPPORTED_FEATURE
The TPM does not support the requested feature.

See Also:
Constant Field Values

TSS_E_CANCELED

public static final long TSS_E_CANCELED
The action was canceled by request.

See Also:
Constant Field Values

TSS_E_PS_KEY_NOTFOUND

public static final long TSS_E_PS_KEY_NOTFOUND
The key cannot be found in the persistent storage database.

See Also:
Constant Field Values

TSS_E_PS_KEY_EXISTS

public static final long TSS_E_PS_KEY_EXISTS
The key already exists in the persistent storage database.

See Also:
Constant Field Values

TSS_E_PS_BAD_KEY_STATE

public static final long TSS_E_PS_BAD_KEY_STATE
The key data set not valid in the persistent storage database.

See Also:
Constant Field Values

TSS_E_INVALID_OBJECT_TYPE

public static final long TSS_E_INVALID_OBJECT_TYPE
Object type not valid for this operation.

See Also:
Constant Field Values

TSS_E_NO_CONNECTION

public static final long TSS_E_NO_CONNECTION
Core Service connection doesn't exist.

See Also:
Constant Field Values

TSS_E_CONNECTION_FAILED

public static final long TSS_E_CONNECTION_FAILED
Core Service connection failed.

See Also:
Constant Field Values

TSS_E_CONNECTION_BROKEN

public static final long TSS_E_CONNECTION_BROKEN
Communication with Core Service failed.

See Also:
Constant Field Values

TSS_E_HASH_INVALID_ALG

public static final long TSS_E_HASH_INVALID_ALG
Invalid hash algorithm.

See Also:
Constant Field Values

TSS_E_HASH_INVALID_LENGTH

public static final long TSS_E_HASH_INVALID_LENGTH
Hash length is inconsistent with hash algorithm.

See Also:
Constant Field Values

TSS_E_HASH_NO_DATA

public static final long TSS_E_HASH_NO_DATA
Hash object has no internal hash value.

See Also:
Constant Field Values

TSS_E_INVALID_ATTRIB_FLAG

public static final long TSS_E_INVALID_ATTRIB_FLAG
Flag value for attrib-functions inconsistent.

See Also:
Constant Field Values

TSS_E_INVALID_ATTRIB_SUBFLAG

public static final long TSS_E_INVALID_ATTRIB_SUBFLAG
Subflag value for attrib-functions inconsistent.

See Also:
Constant Field Values

TSS_E_INVALID_ATTRIB_DATA

public static final long TSS_E_INVALID_ATTRIB_DATA
Data for attrib-functions invalid.

See Also:
Constant Field Values

TSS_E_INVALID_OBJECT_INIT_FLAG

public static final long TSS_E_INVALID_OBJECT_INIT_FLAG
Wrong flag information for object creation. The alternate spelling is supported to be compatible with a typo in the 1.1b header files.

See Also:
Constant Field Values

TSS_E_INVALID_OBJECT_INITFLAG

public static final long TSS_E_INVALID_OBJECT_INITFLAG
See Also:
Constant Field Values

TSS_E_NO_PCRS_SET

public static final long TSS_E_NO_PCRS_SET
No PCR register are selected or set.

See Also:
Constant Field Values

TSS_E_KEY_NOT_LOADED

public static final long TSS_E_KEY_NOT_LOADED
The addressed key is currently not loaded.

See Also:
Constant Field Values

TSS_E_KEY_NOT_SET

public static final long TSS_E_KEY_NOT_SET
No key information is currently available.

See Also:
Constant Field Values

TSS_E_VALIDATION_FAILED

public static final long TSS_E_VALIDATION_FAILED
Internal validation of data failed.

See Also:
Constant Field Values

TSS_E_TSP_AUTHREQUIRED

public static final long TSS_E_TSP_AUTHREQUIRED
Authorization is required.

See Also:
Constant Field Values

TSS_E_TSP_AUTH2REQUIRED

public static final long TSS_E_TSP_AUTH2REQUIRED
Multiple authorization is required.

See Also:
Constant Field Values

TSS_E_TSP_AUTHFAIL

public static final long TSS_E_TSP_AUTHFAIL
Authorization failed.

See Also:
Constant Field Values

TSS_E_TSP_AUTH2FAIL

public static final long TSS_E_TSP_AUTH2FAIL
Multiple authorization failed.

See Also:
Constant Field Values

TSS_E_KEY_NO_MIGRATION_POLICY

public static final long TSS_E_KEY_NO_MIGRATION_POLICY
There's no migration policy object set for the addressed key.

See Also:
Constant Field Values

TSS_E_POLICY_NO_SECRET

public static final long TSS_E_POLICY_NO_SECRET
No secret information is currently available for the addressed policy object.

See Also:
Constant Field Values

TSS_E_INVALID_OBJ_ACCESS

public static final long TSS_E_INVALID_OBJ_ACCESS
The operation failed due to an invalid object status.

See Also:
Constant Field Values

TSS_E_INVALID_ENCSCHEME

public static final long TSS_E_INVALID_ENCSCHEME
Invalid encryption scheme.

See Also:
Constant Field Values

TSS_E_INVALID_SIGSCHEME

public static final long TSS_E_INVALID_SIGSCHEME
Invalid signature scheme.

See Also:
Constant Field Values

TSS_E_ENC_INVALID_LENGTH

public static final long TSS_E_ENC_INVALID_LENGTH
Invalid length for encrypted data object.

See Also:
Constant Field Values

TSS_E_ENC_NO_DATA

public static final long TSS_E_ENC_NO_DATA
Encrypted data object contains no data.

See Also:
Constant Field Values

TSS_E_ENC_INVALID_TYPE

public static final long TSS_E_ENC_INVALID_TYPE
Invalid type for encrypted data object.

See Also:
Constant Field Values

TSS_E_INVALID_KEYUSAGE

public static final long TSS_E_INVALID_KEYUSAGE
Invalid usage of key.

See Also:
Constant Field Values

TSS_E_VERIFICATION_FAILED

public static final long TSS_E_VERIFICATION_FAILED
Internal validation of data failed.

See Also:
Constant Field Values

TSS_E_HASH_NO_IDENTIFIER

public static final long TSS_E_HASH_NO_IDENTIFIER
Hash algorithm identifier not set.

See Also:
Constant Field Values

TSS_E_INVALID_HANDLE

public static final long TSS_E_INVALID_HANDLE
An invalid handle

See Also:
Constant Field Values

TSS_E_SILENT_CONTEXT

public static final long TSS_E_SILENT_CONTEXT
A silent context requires user input

See Also:
Constant Field Values

TSS_E_EK_CHECKSUM

public static final long TSS_E_EK_CHECKSUM
TSP is instructed to verify the EK checksum and it does not verify.

See Also:
Constant Field Values

TSS_E_DELEGATION_NOTSET

public static final long TSS_E_DELEGATION_NOTSET
The Policy object does not have a delegation blob set.

See Also:
Constant Field Values

TSS_E_DELFAMILY_NOTFOUND

public static final long TSS_E_DELFAMILY_NOTFOUND
The specified delegation family was not found

See Also:
Constant Field Values

TSS_E_DELFAMILY_ROWEXISTS

public static final long TSS_E_DELFAMILY_ROWEXISTS
The specified delegation family table row is already in use and the command flags does not allow the TSS to overwrite the existing entry.

See Also:
Constant Field Values

TSS_E_VERSION_MISMATCH

public static final long TSS_E_VERSION_MISMATCH
The specified delegation family table row is already in use and the command flags does not allow the TSS to overwrite the existing entry.

See Also:
Constant Field Values

TSS_E_DAA_AR_DECRYPTION_ERROR

public static final long TSS_E_DAA_AR_DECRYPTION_ERROR
Decryption of the encrypted pseudonym has failed, due to either a wrong secret key or a wrong decryption condition.

See Also:
Constant Field Values

TSS_E_DAA_AUTHENTICATION_ERROR

public static final long TSS_E_DAA_AUTHENTICATION_ERROR
The TPM could not be authenticated by the DAA Issuer.

See Also:
Constant Field Values

TSS_E_DAA_CHALLENGE_RESPONSE_ERROR

public static final long TSS_E_DAA_CHALLENGE_RESPONSE_ERROR
DAA Challenge response error.

See Also:
Constant Field Values

TSS_E_DAA_CREDENTIAL_PROOF_ERROR

public static final long TSS_E_DAA_CREDENTIAL_PROOF_ERROR
Verification of the credential TSS_DAA_CRED_ISSUER issued by the DAA Issuer has failed.

See Also:
Constant Field Values

TSS_E_DAA_CREDENTIAL_REQUEST_PROOF_ERROR

public static final long TSS_E_DAA_CREDENTIAL_REQUEST_PROOF_ERROR
Verification of the platform's credential request TSS_DAA_CREDENTIAL_REQUEST has failed.

See Also:
Constant Field Values

TSS_E_DAA_ISSUER_KEY_ERROR

public static final long TSS_E_DAA_ISSUER_KEY_ERROR
DAA Issuer's authentication key chain could not be verified or is not correct.

See Also:
Constant Field Values

TSS_E_DAA_PSEUDONYM_ERROR

public static final long TSS_E_DAA_PSEUDONYM_ERROR
While verifying the pseudonym of the TPM, the private key of the TPM was found on the rogue list.

See Also:
Constant Field Values

TSS_E_INVALID_RESOURCE

public static final long TSS_E_INVALID_RESOURCE
Pointer to memory wrong.

See Also:
Constant Field Values

TSS_E_NV_AREA_EXIST

public static final long TSS_E_NV_AREA_EXIST
The NV area referenced already exists

See Also:
Constant Field Values

TSS_E_NV_AREA_NOT_EXIST

public static final long TSS_E_NV_AREA_NOT_EXIST
The NV area referenced doesn't exist

See Also:
Constant Field Values

TSS_E_TSP_TRANS_AUTHFAIL

public static final long TSS_E_TSP_TRANS_AUTHFAIL
The transport session authorization failed

See Also:
Constant Field Values

TSS_E_TSP_TRANS_AUTHREQUIRED

public static final long TSS_E_TSP_TRANS_AUTHREQUIRED
Authorization for transport is required

See Also:
Constant Field Values

TSS_E_TSP_TRANS_NOTEXCLUSIVE

public static final long TSS_E_TSP_TRANS_NOTEXCLUSIVE
A command was executed outside of an exclusive transport session.

See Also:
Constant Field Values

TSS_E_TSP_TRANS_FAIL

public static final long TSS_E_TSP_TRANS_FAIL
Generic transport protection error.

See Also:
Constant Field Values

TSS_E_TSP_TRANS_NO_PUBKEY

public static final long TSS_E_TSP_TRANS_NO_PUBKEY
A command could not be executed through a logged transport session because the command used a key and the key's public key is not known to the TSP.

See Also:
Constant Field Values

TSS_E_NO_ACTIVE_COUNTER

public static final long TSS_E_NO_ACTIVE_COUNTER
The TPM active counter has not been set yet.^M

See Also:
Constant Field Values
Method Detail

errToString

public static String errToString(long errCode)
This method returns an error message including the error code, the error type and the error message.

Parameters:
errCode - The error code to be translated into a text message.

getErrMsg

public static String getErrMsg(long errCode)
This method returns the error string for the given error code.