|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface TcIHash
A hash value represents a unique value corresponding to a particular set of bytes. This class provides a cryptographically secure way to use these functions for digital signature operations.
| Method Summary | |
|---|---|
TcBlobData |
getHashValue()
This method returns the hash value of the hash object. |
void |
setHashValue(TcBlobData hashValue)
This method sets the hash value of the hash object. |
TcBlobData |
sign(TcIRsaKey key)
This method signs the hash data of the object with the provided signing key. |
void |
updateHashValue(TcBlobData data)
This method updates the hash object with new data. |
void |
verifySignature(TcBlobData signature,
TcIRsaKey key)
This method verifies the hash value of the hash object with a given signature. |
| Methods inherited from interface TcIAttributes |
|---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
| Method Detail |
|---|
TcBlobData sign(TcIRsaKey key)
throws TcTssException
key - Key object which should be used for the signature.
TcTssException
void verifySignature(TcBlobData signature,
TcIRsaKey key)
throws TcTssException
signature - The signature to be verified.key - The key which should be used for the signature verification.
TcTssException
void setHashValue(TcBlobData hashValue)
throws TcTssException
hashValue - The hash value to be set.
TcTssException
TcBlobData getHashValue()
throws TcTssException
TcTssException
void updateHashValue(TcBlobData data)
throws TcTssException
TcTssConstants.TSS_HASH_SHA1 init flag.
Update means that that the provided data is appended to an internal buffer that already holds
the data from previous update operations. The SHA1 hash of this internal buffer can be obtained
using the getHashValue() method. Calling updateHashValue(a) and
updateHashValue(b) is equivalent to updateHashValue(a + b).
data - Blob containing the data to be updated.
TcTssException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||