|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Digest
An interface, which encapsulates secure hash function like SHA-1 or SHA-256.
Method Summary | |
---|---|
Digest |
cloneState()
|
int |
doFinal(byte[] hash,
int off)
Retrieve the hash of all data added so far with update(byte[], int, int) . |
java.lang.String |
getAlgorithmName()
|
int |
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to. |
int |
getDigestSize()
|
void |
reset()
Reset the hash in order to reuse this instance. |
void |
update(byte in)
update the message digest with a single byte. |
void |
update(byte[] data,
int off,
int length)
Add more data to the hash function. |
Method Detail |
---|
java.lang.String getAlgorithmName()
int getDigestSize()
Digest cloneState()
int getByteLength()
void reset()
void update(byte in)
in
- the input byte to be entered.void update(byte[] data, int off, int length)
data
- The buffer where the data to add is stored.
length
bytes starting with off
will be written.off
- The offset at which the data is stored.length
- The number of bytes to add.int doFinal(byte[] hash, int off)
update(byte[], int, int)
.
hash
- The buffer, where the computed hash will be stored.
getDigestSize()
bytes starting at off
will be written to hash
.off
- The offset at which the hash is stored.
getDigestSize()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |