JXTA

jxta.security.hash
Interface Hash


public interface Hash
extends Description


Field Summary
static byte ALG_MD5
           
static byte ALG_NULL
           
static byte ALG_SHA1
           
static java.lang.String name
           
 
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.
 
Methods inherited from interface jxta.security.util.Description
clearDebug, getAlgorithmName, setDebug
 

Field Detail

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
Method Detail

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

JXTA