|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.security.MessageDigestSpi
|
+--com.ibm.crypto.fips.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.
| Constructor Summary | |
|---|---|
SHA()
Standard constructor, creates a new SHA instance, allocates its buffers from the heap. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this object. |
protected byte[] |
engineDigest()
|
protected int |
engineDigest(byte[] buf,
int offset,
int len)
|
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 SHA information |
protected java.lang.Object |
internalClone()
Clones this object. |
protected byte[] |
internalDigest()
|
protected int |
internalDigest(byte[] buf,
int offset,
int len)
|
protected int |
internalGetDigestLength()
Return the digest length in bytes |
protected void |
internalInit()
Initialize the SHA information |
protected void |
internalReset()
|
protected void |
internalUpdate(byte b)
Update adds the passed byte to the digested data. |
protected void |
internalUpdate(byte[] input,
int offset,
int len)
Update adds the selected part of an array of bytes to the digest. |
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SHA()
| Method Detail |
public boolean isFipsApproved()
AlgorithmStatusisFipsApproved in interface AlgorithmStatusAlgorithmStatus.isFipsApproved()public void init()
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected void internalInit()
protected void engineReset()
engineReset in class java.security.MessageDigestSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected void internalReset()
protected int engineGetDigestLength()
engineGetDigestLength in class java.security.MessageDigestSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected int internalGetDigestLength()
protected void engineUpdate(byte b)
engineUpdate in class java.security.MessageDigestSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected void internalUpdate(byte b)
protected void engineUpdate(byte[] input,
int offset,
int len)
engineUpdate in class java.security.MessageDigestSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalUpdate(byte[] input,
int offset,
int len)
protected byte[] engineDigest()
engineDigest in class java.security.MessageDigestSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected byte[] internalDigest()
protected int engineDigest(byte[] buf,
int offset,
int len)
throws java.security.DigestException
engineDigest in class java.security.MessageDigestSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected int internalDigest(byte[] buf,
int offset,
int len)
throws java.security.DigestException
public java.lang.Object clone()
clone in class java.security.MessageDigestSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected java.lang.Object internalClone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||