Class LongDigest
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.crypto.Digest
,io.anyline.nfc.bouncycastle.crypto.ExtendedDigest
,io.anyline.nfc.bouncycastle.crypto.digests.EncodableDigest
,io.anyline.nfc.bouncycastle.util.Memoable
public abstract class LongDigest implements ExtendedDigest, Memoable, EncodableDigest
Base class for SHA-384 and SHA-512.
-
-
Method Summary
Modifier and Type Method Description void
update(byte in)
update the message digest with a single byte. void
update(Array<byte> in, int inOff, int len)
update the message digest with a block of bytes. void
finish()
void
reset()
reset the digest back to it's initial state. int
getByteLength()
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.digests.EncodableDigest
getEncodedState
-
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.
-
-
-
-