public interface

Digest

org.bouncycastle.crypto.Digest
Known Indirect Subclasses

Class Overview

interface that a message digest conforms to.

Summary

Public Methods
abstract int doFinal(byte[] out, int outOff)
close the digest, producing the final digest value.
abstract String getAlgorithmName()
return the algorithm name
abstract int getDigestSize()
return the size, in bytes, of the digest produced by this message digest.
abstract void reset()
reset the digest back to it's initial state.
abstract void update(byte[] in, int inOff, int len)
update the message digest with a block of bytes.
abstract void update(byte in)
update the message digest with a single byte.

Public Methods

public abstract int doFinal (byte[] out, int outOff)

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.
outOff the offset into the out array the digest is to start at.

public abstract String getAlgorithmName ()

return the algorithm name

Returns
  • the algorithm name

public abstract int getDigestSize ()

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

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

public abstract void reset ()

reset the digest back to it's initial state.

public abstract void update (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.

public abstract void update (byte in)

update the message digest with a single byte.

Parameters
in the input byte to be entered.