Class GeneralDigest
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.crypto.Digest,io.anyline.nfc.bouncycastle.crypto.ExtendedDigest,io.anyline.nfc.bouncycastle.util.Memoable
public abstract class GeneralDigest implements ExtendedDigest, Memoable
base implementation of MD4 family style digest as outlined in "Handbook of Applied Cryptography", pages 344 - 347.
-
-
Method Summary
Modifier and Type Method Description voidupdate(byte in)update the message digest with a single byte. voidupdate(Array<byte> in, int inOff, int len)update the message digest with a block of bytes. voidfinish()voidreset()reset the digest back to it's initial state. intgetByteLength()Return the size in bytes of the internal buffer the digest applies it's compression function to. -
Methods inherited from class io.anyline.nfc.bouncycastle.util.Memoable
copy, reset -
Methods inherited from class io.anyline.nfc.bouncycastle.crypto.Digest
doFinal, getAlgorithmName, getDigestSize -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
update
void update(byte in)
update the message digest with a single byte.
- Parameters:
in- the input byte to be entered.
-
update
void update(Array<byte> in, int inOff, int len)
update the message digest with a block of bytes.
- Parameters:
in- the byte array containing the data.inOff- the offset into the byte array where the data starts.len- the length of the data.
-
finish
void finish()
-
reset
void reset()
reset the digest back to it's initial state.
-
getByteLength
int getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to.
- Returns:
byte length of the digests internal buffer.
-
-
-
-