Top Description Methods
org.bouncycastle.crypto.internal

public Interface Digest

Known Direct Subinterfaces
org.bouncycastle.crypto.internal.ExtendedDigest
Known Direct Implementers
org.bouncycastle.crypto.fips.NullDigest, org.bouncycastle.crypto.general.NullDigest

interface that a message digest conforms to.

Method Summary

Modifier and TypeMethod and Description
public int
doFinal(byte[]
the array the digest is to be copied into.
out
,
int
the offset into the out array the digest is to start at.
outOff
)

close the digest, producing the final digest value.

public String

Returns:

the algorithm name
getAlgorithmName
()

return the algorithm name

public int

Returns:

byte length of the digests internal buffer.
getByteLength
()

Return the size in bytes of the internal buffer the digest applies it's compression function to.

public int

Returns:

the size, in bytes, of the digest produced by this message digest.
getDigestSize
()

return the size, in bytes, of the digest produced by this message digest.

public void
reset()

reset the digest back to it's initial state.

public void
update(byte
the input byte to be entered.
in
)

update the message digest with a single byte.

public void
update(byte[]
the byte array containing the data.
in
,
int
the offset into the byte array where the data starts.
inOff
,
int
the length of the data.
len
)

update the message digest with a block of bytes.

Method Detail

doFinalback to summary
public int doFinal(byte[] out, int outOff)

close the digest, producing the final digest value. The doFinal call leaves the digest reset.

Parameters
out:byte[]

the array the digest is to be copied into.

outOff:int

the offset into the out array the digest is to start at.

getAlgorithmNameback to summary
public String getAlgorithmName()

return the algorithm name

Returns:String

the algorithm name

getByteLengthback to summary
public int getByteLength()

Return the size in bytes of the internal buffer the digest applies it's compression function to.

Returns:int

byte length of the digests internal buffer.

getDigestSizeback to summary
public int getDigestSize()

return the size, in bytes, of the digest produced by this message digest.

Returns:int

the size, in bytes, of the digest produced by this message digest.

resetback to summary
public void reset()

reset the digest back to it's initial state.

updateback to summary
public void update(byte in)

update the message digest with a single byte.

Parameters
in:byte

the input byte to be entered.

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

update the message digest with a block of bytes.

Parameters
in:byte[]

the byte array containing the data.

inOff:int

the offset into the byte array where the data starts.

len:int

the length of the data.