| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.digests.GeneralDigest
public abstract class GeneralDigest
base implementation of MD4 family style digest as outlined in "Handbook of Applied Cryptography", pages 344 - 347.
| Field Summary | |
|---|---|
| private static int | BYTE_LENGTH | 
| private  long | byteCount | 
| private  byte[] | xBuf | 
| private  int | xBufOff | 
| 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 digest back to it's initial state. | 
|  void | update(byte in)update the message digest with a single byte. | 
|  void | update(byte[] in,
       int inOff,
       int len)update the message digest with a block of bytes. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.bouncycastle.crypto.Digest | 
|---|
| doFinal, getAlgorithmName, getDigestSize | 
| Field Detail | 
|---|
private static final int BYTE_LENGTH
private byte[] xBuf
private int xBufOff
private long byteCount
| Constructor Detail | 
|---|
protected GeneralDigest()
protected GeneralDigest(GeneralDigest t)
| Method Detail | 
|---|
public void update(byte in)
Digest
update in interface Digestin - the input byte to be entered.public void update(byte[] in,
                   int inOff,
                   int len)
Digest
update in interface Digestin - the byte array containing the data.inOff - the offset into the byte array where the data starts.len - the length of the data.public void finish()
public void reset()
Digest
reset in interface Digestpublic int getByteLength()
ExtendedDigest
getByteLength in interface ExtendedDigestprotected abstract void processWord(byte[] in,
                                    int inOff)
protected abstract void processLength(long bitLength)
protected abstract void processBlock()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||