|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.squawk.security.signing.SHA
public final class SHA
Field Summary | |
---|---|
static byte |
ALG_SHA
Message Digest algorithm SHA. |
Constructor Summary | |
---|---|
SHA()
|
Method Summary | |
---|---|
int |
doFinal(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
Generates a hash of all/last input data. |
byte |
getAlgorithm()
Gets the message digest algorithm. |
byte |
getLength()
Returns the byte length of the hash. |
void |
reset()
Resets the MessageDigest to the initial state for
further use. |
void |
update(byte[] input,
int offset,
int len)
Accumulates a hash of the input data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte ALG_SHA
Constructor Detail |
---|
public SHA()
Method Detail |
---|
public byte getAlgorithm()
public byte getLength()
public void reset()
MessageDigest
to the initial state for
further use.
public void update(byte[] input, int offset, int len)
doFinal()
method is
recommended. The doFinal()
method must be called to
complete processing of input data accumulated by one or more calls to
the update()
method.
Note:
inLength
is 0 this method does nothing.
inBuff
- the input buffer of data to be hashedinOffset
- the offset into the input buffer at which to begin
hash generationinLength
- the byte length to hashdoFinal(byte[], int, int, byte[], int)
public int doFinal(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff)
MessageDigest
object is reset to the initial state
after this call is made.
The input and output buffer data may overlap.
inBuff
- the input buffer of data to be hashedinOffset
- the offset into the input buffer at which to begin
hash generationinLength
- the byte length to hashoutBuff
- the output buffer, may be the same as the input bufferoutOffset
- the offset into the output buffer where the resulting
hash value begins
outBuff
|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |