iaik.tc.tss.api.structs.tpm
Class TcTpmStructVer

Object
  extended by TcBasicTypeDecoder
      extended by TcCompositeTypeDecoder
          extended by TcTpmVersion
              extended by TcTpmStructVer

public class TcTpmStructVer
extends TcTpmVersion

This indicates the version of the structure. Version 1.2 deprecates the use of this structure in all other structures. The TPM_STRUCT_VER structure itself is not deprecated as many other structures that contain this structure are not deprecated. The rationale behind keeping this structure and adding the new version structure is that in version 1.1 this structure was in use for two purposes. The first was to indicate the structure version, and in that mode the revMajor and revMinor were supposed to be set to 0. The second use was in TPM_GetCapability and the structure would then return the correct revMajor and revMinor. This use model caused problems in keeping track of when the revs were or were not set and how software used the information. Version 1.2 went to structure tags. Some structures did not change and the TPM_STRUCT_VER is still in use To avoid the problems from 1.1, this structure now is a fixed value and only remains for backwards compatibility. Structure versioning comes from the tag on the structure, and the TPM_GetCapability response for TPM versioning uses TPM_VERSION.


Field Summary
static TcTpmStructVer TPM_V1_1
          This constant can be used for TPM 1.1 version comparisons
 
Fields inherited from class TcTpmVersion
TPM_V1_2
 
Constructor Summary
TcTpmStructVer()
          Constructor - see superclass for details
TcTpmStructVer(TcBlobData data)
          Constructor - see superclass for details
TcTpmStructVer(TcBlobData data, int offset)
          Constructor - see superclass for details
TcTpmStructVer(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 
Methods inherited from class TcTpmVersion
equalsMinMaj, equalsRevMinMaj, getEncoded, getMajor, getMinor, getRevMajor, getRevMinor, setMajor, setMinor, setRevMajor, setRevMinor, toString
 
Methods inherited from class TcBasicTypeDecoder
decodeBoolean, decodeByte, decodeBytes, decodeBytes, decodeTpmAlgorithmId, decodeTpmAuthDataUsage, decodeTpmEncScheme, decodeTpmKeyFlags, decodeTpmKeyUsage, decodeTpmSigScheme, decodeTssAlgorithmId, decodeTssEncScheme, decodeTssEvenType, decodeTssFlag, decodeTssHandle, decodeTssHContext, decodeTssHEncData, decodeTssHHash, decodeTssHKey, decodeTssHObjet, decodeTssHPcrs, decodeTssHPolicy, decodeTssHPS, decodeTssHTpm, decodeTssKeyUsageId, decodeTssMigrationScheme, decodeTssResult, decodeTssSigScheme, decodeUINT16, decodeUINT32, decodeUINT64
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TPM_V1_1

public static final TcTpmStructVer TPM_V1_1
This constant can be used for TPM 1.1 version comparisons

Constructor Detail

TcTpmStructVer

public TcTpmStructVer()
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder()

TcTpmStructVer

public TcTpmStructVer(TcBlobData data)
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder(iaik.tc.tss.api.structs.common.TcBlobData)

TcTpmStructVer

public TcTpmStructVer(TcBlobData data,
                      int offset)
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder(iaik.tc.tss.api.structs.common.TcBlobData, int)

TcTpmStructVer

public TcTpmStructVer(TcCompositeTypeDecoder composite)
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder(iaik.tc.tss.api.structs.common.TcCompositeTypeDecoder)