|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.java.security.MessageDigestSpi | +--com.ibm.security12.sun.security.provider.SHA
This class implements the Secure Hash Algorithm (SHA) developed by the National Institute of Standards and Technology along with the National Security Agency. This is the updated version of SHA fip-180 as superseded by fip-180-1.
It implement JavaSecurity MessageDigest, and can be used by in the Java Security framework, as a pluggable implementation, as a filter for the digest stream classes.
Constructor Summary | |
SHA()
Creates a new SHA object. |
Method Summary | |
Object |
clone()
|
byte[] |
engineDigest()
Computes the final hash and returns the final value as a byte[20] array. |
int |
engineDigest(byte[] hashvalue,
int offset,
int len)
Computes the final hash and returns the final value as a byte[20] array. |
protected int |
engineGetDigestLength()
Return the length of the digest in bytes |
void |
engineReset()
Resets the buffers and hash value to start a new hash. |
void |
engineUpdate(byte b)
|
void |
engineUpdate(byte[] b,
int off,
int len)
Update a buffer. |
void |
init()
Resets the buffers and hash value to start a new hash. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SHA()
Method Detail |
protected int engineGetDigestLength()
public void engineUpdate(byte b)
public void engineUpdate(byte[] b, int off, int len)
b
- the data to be updated.off
- the start offset in the datalen
- the number of bytes to be updated.public void init()
public void engineReset()
public byte[] engineDigest()
public int engineDigest(byte[] hashvalue, int offset, int len) throws DigestException
public Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |