|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.optional.sec.GeneralDigest
public abstract class GeneralDigest
Base class for the most common digests. This class is imported from bouncycastle.org
Constructor Summary | |
---|---|
protected |
GeneralDigest()
Standard constructor |
protected |
GeneralDigest(GeneralDigest t)
Copy constructor. |
Method Summary | |
---|---|
void |
finish()
|
int |
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to. |
protected abstract void |
processBlock()
|
protected abstract void |
processLength(long bitLength)
|
protected abstract void |
processWord(byte[] in,
int inOff)
|
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[] in,
int inOff,
int len)
Add more data to the hash function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.clazzes.optional.sec.Digest |
---|
cloneState, doFinal, getAlgorithmName, getDigestSize |
Constructor Detail |
---|
protected GeneralDigest()
protected GeneralDigest(GeneralDigest t)
Method Detail |
---|
public void update(byte in)
Digest
update
in interface Digest
in
- the input byte to be entered.public void update(byte[] in, int inOff, int len)
Digest
update
in interface Digest
in
- The buffer where the data to add is stored.
length
bytes starting with off
will be written.inOff
- The offset at which the data is stored.len
- The number of bytes to add.public void finish()
public void reset()
Digest
reset
in interface Digest
public int getByteLength()
Digest
getByteLength
in interface Digest
protected abstract void processWord(byte[] in, int inOff)
protected abstract void processLength(long bitLength)
protected abstract void processBlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |