|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.MessageDigestSpi
com.ibm.crypto.provider.SHA3
public final class SHA3
This class implements the Secure Hash Algorithm 3 (SHA-3) developed by the National Institute of Standards and Technology along with the National Security Agency. SHA-3 is defined in the same exact manner as as SHA-5, with 2 exceptions: 1. The initial hash value is different (see code below) 2. The 384-bit message digest is obtained by truncating the final hash value to it's left-most 384 bits.
Constructor Summary | |
---|---|
SHA3()
Standard constructor, creates a new SHA3 instance, allocates its buffers from the heap. |
Method Summary | |
---|---|
Object |
clone()
Clones this object. |
protected byte[] |
engineDigest()
Compute the final hash and reset the engine so that it is ready for re-use, as specifed by MessageDigest. |
protected int |
engineDigest(byte[] buf,
int offset,
int len)
Compute the final hash and reset the engine so that it is ready for re-use, as specifed by MessageDigest. |
protected int |
engineGetDigestLength()
Return the digest length in bytes |
protected void |
engineReset()
|
protected void |
engineUpdate(byte b)
Update adds the passed byte to the digested data. |
protected void |
engineUpdate(byte[] input,
int offset,
int len)
Update adds the selected part of an array of bytes to the digest. |
void |
init()
Initialize the SHA3 information |
Methods inherited from class java.security.MessageDigestSpi |
---|
engineUpdate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SHA3()
Method Detail |
---|
public void init()
protected void engineReset()
engineReset
in class MessageDigestSpi
protected int engineGetDigestLength()
engineGetDigestLength
in class MessageDigestSpi
protected void engineUpdate(byte b)
engineUpdate
in class MessageDigestSpi
protected void engineUpdate(byte[] input, int offset, int len)
engineUpdate
in class MessageDigestSpi
protected byte[] engineDigest()
engineDigest
in class MessageDigestSpi
protected int engineDigest(byte[] buf, int offset, int len) throws DigestException
engineDigest
in class MessageDigestSpi
DigestException
public Object clone()
clone
in class MessageDigestSpi
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |