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

Object
  extended by TcBasicTypeDecoder
      extended by TcCompositeTypeDecoder
          extended by TcTpmDigest
Direct Known Subclasses:
TcTpmChosenIdHash, TcTpmCompositeHash, TcTpmPcrValue

public class TcTpmDigest
extends TcCompositeTypeDecoder

The digest value reports the result of a hash operation. In Version 1.0 of this specification the hash algorithm is SHA-1 with a resulting hash result being 160 bits. This lack of flexibility is because the size of a digest has a dramatic effect on the implementation of a hardware TPM.

TCPA 1.1b Main Specification, page number:
26

Constructor Summary
TcTpmDigest()
          Constructor - see superclass for details
TcTpmDigest(TcBlobData blob)
          Constructor - see superclass for details
TcTpmDigest(TcBlobData blob, int offset)
          Constructor - see superclass for details
TcTpmDigest(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 TcBlobData getDigest()
          Returns contents of the digest field.
 TcBlobData getEncoded()
          This method encodes the TPM_DIGEST as a byte blob.
 void setDigest(TcBlobData digest)
          Sets the digest field.
 String toString()
          This method returns a String representation of the object.
 
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
 

Constructor Detail

TcTpmDigest

public TcTpmDigest()
Constructor - see superclass for details


TcTpmDigest

public TcTpmDigest(TcBlobData blob)
Constructor - see superclass for details


TcTpmDigest

public TcTpmDigest(TcBlobData blob,
                   int offset)
Constructor - see superclass for details


TcTpmDigest

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

Method Detail

getEncoded

public TcBlobData getEncoded()
This method encodes the TPM_DIGEST as a byte blob.

Specified by:
getEncoded in class TcCompositeTypeDecoder
Returns:
byte blob to be passed to other layers (e.g. TSS)

toString

public String toString()
This method returns a String representation of the object.

Overrides:
toString in class TcCompositeTypeDecoder

getDigest

public TcBlobData getDigest()
Returns contents of the digest field.


setDigest

public void setDigest(TcBlobData digest)
Sets the digest field.