iaik.tc.tss.api.structs.tsp
Class TcTssValidation

Object
  extended by TcTssValidation

public class TcTssValidation
extends Object

The TcTssValidation structure provides the ability to verify signatures and validation digests built over certain TPM command parameters. These parameters (i.e. structures) are defined in TPM 1.2 specification. The caller must provide some random data (externalData_) as input, which is included in the signature/digest calculation.
The following TSP functions use this structure:

If the validation of the signature/digest should be done by the TSP itself, a null pointer must be passed to these methods. In this case the TSP generates its own random data to be included in the signature/digest (externalData_).

TSS Spec. 1.2 Errata A, page number:
110
TSS Spec. 1.10 Golden, Aug. 20, 2003, page number:
50

Constructor Summary
TcTssValidation()
          Default constructor.
 
Method Summary
 TcBlobData getData()
          Returns contents of the data field (i.e.
 long getDataLength()
          Returns the data length.
 TcBlobData getExternalData()
          Returns contents of the externalData field.
 long getExternalDataLength()
          Returns the data length.
 TcBlobData getValidationData()
          Returns contents of the validationData field.
 long getValidationDataLength()
          Returns the validationData length.
 TcTssVersion getVersionInfo()
          Returns contents of the version info field.
 TcTssValidation init(TcBlobData externalData, TcBlobData data, TcBlobData validationData)
          Initialization method taking and setting all parameters at once.
 void setData(TcBlobData data)
          Sets the data field (i.e.
 void setExternalData(TcBlobData externalData)
          Sets the externalData field.
 void setValidationData(TcBlobData validationData)
          Sets the validationData field.
 void setVersionInfo(TcTssVersion versionInfo)
          Sets the version info field.
 String toString()
          This method returns a String representation of the object.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcTssValidation

public TcTssValidation()
Default constructor.

Method Detail

init

public TcTssValidation init(TcBlobData externalData,
                            TcBlobData data,
                            TcBlobData validationData)
Initialization method taking and setting all parameters at once.


getVersionInfo

public TcTssVersion getVersionInfo()
Returns contents of the version info field.


setVersionInfo

public void setVersionInfo(TcTssVersion versionInfo)
Sets the version info field.


getData

public TcBlobData getData()
Returns contents of the data field (i.e. the raw data that was used to compute the validation).


setData

public void setData(TcBlobData data)
Sets the data field (i.e. the raw data that was used to compute the validation).


getDataLength

public long getDataLength()
Returns the data length.


getExternalDataLength

public long getExternalDataLength()
Returns the data length.


getExternalData

public TcBlobData getExternalData()
Returns contents of the externalData field.


setExternalData

public void setExternalData(TcBlobData externalData)
Sets the externalData field.


getValidationData

public TcBlobData getValidationData()
Returns contents of the validationData field.


setValidationData

public void setValidationData(TcBlobData validationData)
Sets the validationData field.


getValidationDataLength

public long getValidationDataLength()
Returns the validationData length.


toString

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

Overrides:
toString in class Object