jxta.security.hash
Interface Hash
- public interface Hash
- extends Description
Method Summary |
java.lang.Object |
clone()
|
int |
doFinal(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
Called to has the final byte array of input data |
byte |
getAlgorithm()
|
byte |
getDigestLength()
|
void |
reset()
|
void |
update(byte[] buf,
int off,
int len)
Called if all data cannot be put into a single
byte array. |
name
public static final java.lang.String name
ALG_NULL
public static final byte ALG_NULL
ALG_SHA1
public static final byte ALG_SHA1
ALG_MD5
public static final byte ALG_MD5
getAlgorithm
public byte getAlgorithm()
getDigestLength
public byte getDigestLength()
reset
public void reset()
clone
public java.lang.Object clone()
- Overrides:
- clone in class java.lang.Object
update
public void update(byte[] buf,
int off,
int len)
- Called if all data cannot be put into a single
byte array. The last byte array "full" of data
MUST be passed to doFinal below
doFinal
public int doFinal(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
- Called to has the final byte array of input data