|
SafeAPI v1.20 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.safeapi.CryptoCommon
com.safeapi.CryptoHash
Hash APis Module
| Constructor Summary | |
CryptoHash()
Loads an instance of CryptoHash. |
|
| Method Summary | |
String |
hashBufferHex(String sAlgorithm,
byte[] bBuffer)
Computes in one operation the digest value for the specified buffer and with the specified algorithm. |
void |
hashDataBuffer(byte[] bSubBuffer)
Updates the digest using the specified array of bytes. |
byte[] |
hashDataBufferDigest()
Completes the hash computation by performing final operations such as padding. |
void |
hashDataBufferInit(String sAlgorithm)
Initializes a BufferDigest with specified algorithm (MD5 or SHA-1). |
byte[] |
hashDataFile(String sAlgorithm,
String sFilePath)
Returns the digest value for the specified file and with the specified algorithm. |
| Methods inherited from class com.safeapi.CryptoCommon |
createSeedFile, getParameter, getRandomBytes, getRawError, getRegisteredError, getVersion, isOperationOK, setParameter, wipe |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CryptoHash()
| Method Detail |
public void hashDataBufferInit(String sAlgorithm)
sAlgorithm - The algorithm to usepublic void hashDataBuffer(byte[] bSubBuffer)
hashDataBufferInit(java.lang.String) first.
bSubBuffer - The bytes to add to the buffer to hashpublic byte[] hashDataBufferDigest()
public String hashBufferHex(String sAlgorithm,
byte[] bBuffer)
sAlgorithm - The algorithm used for the hash functionbBuffer - The byte array to add to the buffer to hash
public byte[] hashDataFile(String sAlgorithm,
String sFilePath)
sAlgorithm - The algorithm used for the hash functionsFilePath - The path of the file to hash
|
SafeAPI v1.20 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||