|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object TcBasicTypeDecoder TcCompositeTypeDecoder TcTpmDigest
public class TcTpmDigest
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.
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 Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TcTpmDigest()
public TcTpmDigest(TcBlobData blob)
public TcTpmDigest(TcBlobData blob, int offset)
public TcTpmDigest(TcCompositeTypeDecoder composite)
Method Detail |
---|
public TcBlobData getEncoded()
getEncoded
in class TcCompositeTypeDecoder
public String toString()
toString
in class TcCompositeTypeDecoder
public TcBlobData getDigest()
public void setDigest(TcBlobData digest)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |