Class GeneralDigest
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.crypto.GeneralDigest
-
- Direct Known Subclasses:
MD5Digest
,SHA1Digest
,SHA256Digest
public abstract class GeneralDigest extends java.lang.Object
base implementation of MD4 family style digest as outlined in "Handbook of Applied Cryptography", pages 344 - 347.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeneralDigest()
Standard constructorprotected
GeneralDigest(GeneralDigest t)
Copy constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
finish()
protected abstract void
processBlock()
protected abstract void
processLength(long bitLength)
protected abstract void
processWord(byte[] in, int inOff)
void
reset()
void
update(byte in)
void
update(byte[] in, int inOff, int len)
-
-
-
Constructor Detail
-
GeneralDigest
protected GeneralDigest()
Standard constructor
-
GeneralDigest
protected GeneralDigest(GeneralDigest t)
Copy constructor. We are using copy constructors in place of the Object.clone() interface as this interface is not supported by J2ME.
-
-
Method Detail
-
update
public void update(byte in)
-
update
public void update(byte[] in, int inOff, int len)
-
finish
public void finish()
-
reset
public void reset()
-
processWord
protected abstract void processWord(byte[] in, int inOff)
-
processLength
protected abstract void processLength(long bitLength)
-
processBlock
protected abstract void processBlock()
-
-