|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.logi.crypto.Crypto
|
+--org.logi.crypto.sign.HashState
|
+--org.logi.crypto.sign.MD5State
An object of this class holds the state of an MD5 fingerprint still being calculated.
Fingerprint,
Signature| Inner Class Summary | |
static class |
MD5State.SubState
|
| Fields inherited from class org.logi.crypto.Crypto |
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO |
| Constructor Summary | |
MD5State()
Create a new clear MD5State. |
|
| Method Summary | |
int |
blockSize()
Return the size of input-blocks for this hash function in bytes. |
Fingerprint |
calculate()
Return a Fingerprint for the curret state, without destroying the state. |
java.lang.String |
getName()
The name of the algorithm is "MD5". |
int |
hashSize()
Returns the size of a fingerprint in bytes. |
void |
reset()
Reset the object. |
void |
update(byte[] data,
int offset,
int length)
Update the fingerprint state with the bytes from buf[offset, offset+length-1]. |
| Methods inherited from class org.logi.crypto.sign.HashState |
create, create, getDefaultHashFunction, setDefaultHashFunction, update, update |
| Methods inherited from class org.logi.crypto.Crypto |
binString, binString, ensureArrayLength, ensureArrayLength, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, prettyPrint, prettyPrint, readBlock, readInt, trimArrayLength, trimArrayLength, trimLeadingZeroes, writeBytes, writeBytes, writeInt |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MD5State()
| Method Detail |
public java.lang.String getName()
getName in class HashStatepublic void reset()
reset in class HashState
public void update(byte[] data,
int offset,
int length)
buf[offset, offset+length-1].update in class HashStatepublic Fingerprint calculate()
calculate in class HashStatepublic int blockSize()
blockSize in class HashStatepublic int hashSize()
hashSize in class HashState
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||