org.bouncycastle.crypto.digests

Class LongDigest

public abstract class LongDigest extends Object implements ExtendedDigest

Base class for SHA-384 and SHA-512.
Field Summary
protected longH1
protected longH2
protected longH3
protected longH4
protected longH5
protected longH6
protected longH7
protected longH8
Constructor Summary
protected LongDigest()
Constructor for variable length word
protected LongDigest(LongDigest t)
Copy constructor.
Method Summary
voidfinish()
intgetByteLength()
protected voidprocessBlock()
protected voidprocessLength(long lowW, long hiW)
protected voidprocessWord(byte[] in, int inOff)
voidreset()
protected voidunpackWord(long word, byte[] out, int outOff)
voidupdate(byte in)
voidupdate(byte[] in, int inOff, int len)

Field Detail

H1

protected long H1

H2

protected long H2

H3

protected long H3

H4

protected long H4

H5

protected long H5

H6

protected long H6

H7

protected long H7

H8

protected long H8

Constructor Detail

LongDigest

protected LongDigest()
Constructor for variable length word

LongDigest

protected LongDigest(LongDigest 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

finish

public void finish()

getByteLength

public int getByteLength()

processBlock

protected void processBlock()

processLength

protected void processLength(long lowW, long hiW)

processWord

protected void processWord(byte[] in, int inOff)

reset

public void reset()

unpackWord

protected void unpackWord(long word, byte[] out, int outOff)

update

public void update(byte in)

update

public void update(byte[] in, int inOff, int len)