| org.bouncycastle.crypto.Digest
All known Subclasses: org.bouncycastle.crypto.tls.CombinedHash,
Digest | public interface Digest (Code) | | interface that a message digest conforms to.
|
Method Summary | |
public int | doFinal(byte[] out, int outOff) close the digest, producing the final digest value. | public String | getAlgorithmName() | public int | 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 in) update the message digest with a single byte. | public void | update(byte[] in, int inOff, int len) update the message digest with a block of bytes. |
doFinal | public int doFinal(byte[] out, int outOff)(Code) | | close the digest, producing the final digest value. The doFinal
call leaves the digest reset.
Parameters: out - the array the digest is to be copied into. Parameters: outOff - the offset into the out array the digest is to start at. |
getAlgorithmName | public String getAlgorithmName()(Code) | | return the algorithm name
the algorithm name |
getDigestSize | public int getDigestSize()(Code) | | return the size, in bytes, of the digest produced by this message digest.
the size, in bytes, of the digest produced by this message digest. |
reset | public void reset()(Code) | | reset the digest back to it's initial state.
|
update | public void update(byte in)(Code) | | update the message digest with a single byte.
Parameters: in - the input byte to be entered. |
update | public void update(byte[] in, int inOff, int len)(Code) | | update the message digest with a block of bytes.
Parameters: in - the byte array containing the data. Parameters: inOff - the offset into the byte array where the data starts. Parameters: len - the length of the data. |
|
|