FileDocCategorySizeDatePackage
Digest.javaAPI DocAndroid 1.5 API1339Wed May 06 22:41:06 BST 2009org.bouncycastle.crypto

Digest

public interface Digest
interface that a message digest conforms to.

Fields Summary
Constructors Summary
Methods Summary
public intdoFinal(byte[] out, int outOff)
close the digest, producing the final digest value. The doFinal call leaves the digest reset.

param
out the array the digest is to be copied into.
param
outOff the offset into the out array the digest is to start at.

public java.lang.StringgetAlgorithmName()
return the algorithm name

return
the algorithm name

public intgetDigestSize()
return the size, in bytes, of the digest produced by this message digest.

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

public voidreset()
reset the digest back to it's initial state.

public voidupdate(byte in)
update the message digest with a single byte.

param
in the input byte to be entered.

public voidupdate(byte[] in, int inOff, int len)
update the message digest with a block of bytes.

param
in the byte array containing the data.
param
inOff the offset into the byte array where the data starts.
param
len the length of the data.