|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TcIPcrComposite
The contents of the platform configuration register (PCR) of a TCG system can be used to establish a confidence level for this system. This class provides a comfortable way to deal with PCR values (e.g. select, read, write). An instance of such a class is used from all TSP functions that need PCR information in their parameter list.
| Method Summary | |
|---|---|
TcBlobData |
getPcrCompositeHash()
This method gets the digestAtRelease from the PCR composite object using a 1.2 TcTpmPcrInfoLong or TcTpmPcrInfoShort structure. |
long |
getPcrLocality()
This method gets the LocalityAtRelease from the PCR composite object using a 1.2 TcTpmPcrInfoLong or TcTpmPcrInfoShort structure. |
TcBlobData |
getPcrValue(long pcrIndex)
This method returns the digest value of a given PCR index inside a PCR composite object. |
void |
selectPcrIndex(long pcrIndex)
This method selects a PCR index inside a PCR composite object using the 1.1 TcTpmPcrInfo structure. |
void |
selectPcrIndexEx(long pcrIndex,
long direction)
This method selects a PCR index inside a PCR composite object containing a TcTpmPcrInfoLong or TcTpmPcrInfoShort structure. |
void |
setPcrLocality(long localityValue)
This method sets the LocalityAtRelease inside the PCR composite object using a 1.2 TcTpmPcrInfoLong or TcTpmPcrInfoShort structure. |
void |
setPcrValue(long pcrIndex,
TcBlobData pcrValue)
This method sets the digest for a given PCR index inside the PCR composite object. An example for the usage is the preparation of a PCR composite object before calling TcIRsaKey.createKey(TcIRsaKey, TcIPcrComposite). |
| Methods inherited from interface iaik.tc.tss.api.tspi.TcIAttributes |
|---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
| Method Detail |
|---|
void setPcrValue(long pcrIndex,
TcBlobData pcrValue)
throws TcTssException
TcIRsaKey.createKey(TcIRsaKey, TcIPcrComposite). Multiple PCRs with different indices
can be set by calling this method multiple times in the same PCR composite object.TcTpmPcrInfo, TcTpmPcrInfoShort or TcTpmPcrInfoLong)
used by the object.TcTpmPcrInfoLong is used, this method sets the PCR value for DigestAtRelease.
pcrIndex - The index of the PCR to set.pcrValue - The value of the PCR.
TcTssException
TcBlobData getPcrValue(long pcrIndex)
throws TcTssException
TcTpmPcrInfo, TcTpmPcrInfoShort or TcTpmPcrInfoLong).TcTpmPcrInfoLong is used, this method returns the digestAtRelease.
pcrIndex - The index of the PCR to read.
TcTssException
void selectPcrIndex(long pcrIndex)
throws TcTssException
TcTpmPcrInfo structure. If the PcrComposite object is using another structure than
TcTpmPcrInfo, this function throws a TcTssException with an
TcTssErrors.TSS_E_INVALID_OBJ_ACCESS error code.
pcrIndex - The index of the PCR to select.
TcTssException
void setPcrLocality(long localityValue)
throws TcTssException
TcTpmPcrInfoLong or TcTpmPcrInfoShort structure. If the PcrComposite object is
using a TcTpmPcrInfo (e.g. because the underlying TPM is a 1.1 TPM) a
TcTssException with TcTssErrors.TSS_E_INVALID_OBJ_ACCESS error code is thrown.
localityValue - LocalityAtRelease value to set. Valid locality values are:
TcTpmConstants.TPM_LOC_ZERO, TcTpmConstants.TPM_LOC_ONE,
TcTpmConstants.TPM_LOC_TWO, TcTpmConstants.TPM_LOC_THREE,
TcTpmConstants.TPM_LOC_FOUR.
TcTssException
long getPcrLocality()
throws TcTssException
TcTpmPcrInfoLong or TcTpmPcrInfoShort structure.
TcTssException
TcBlobData getPcrCompositeHash()
throws TcTssException
TcTpmPcrInfoLong or TcTpmPcrInfoShort structure. If the PcrComposite object is
using a TcTpmPcrInfo (e.g. because the underlying TPM is a 1.1 TPM) a
TcTssException with TcTssErrors.TSS_E_INVALID_OBJ_ACCESS error code is thrown.
TcTssException
void selectPcrIndexEx(long pcrIndex,
long direction)
throws TcTssException
TcTpmPcrInfoLong or TcTpmPcrInfoShort structure. For TcTpmPcrInfoLong,
the index may be selected for creation or release; for TcTpmPcrInfoShort, the index
may be selected only for release. TcTpmPcrInfo (e.g. because the underlying TPM is
a 1.1 TPM) a TcTssException with TcTssErrors.TSS_E_INVALID_OBJ_ACCESS error
code is thrown.TcTpmPcrInfoShort and the direction indicates
Creation, the method will throw a TcTssException with a
TcTssErrors.TSS_E_INVALID_OBJ_ACCESS.
pcrIndex - The index of the PCR to select.direction - Chooses whether the index selected is for a PCR at creation or a PCR at
release. Valid direction flags are TcTssConstants.TSS_PCRS_DIRECTION_CREATION
and TcTssConstants.TSS_PCRS_DIRECTION_RELEASE.
TcTssException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||