|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.crypto.MacSpi
|
+--com.ibm.crypto.fips.provider.HmacSHA1
This is an implementation of the HMAC-SHA1 algorithm.
| Constructor Summary | |
|---|---|
HmacSHA1()
Standard constructor, creates a new HmacSHA1 instance. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
protected byte[] |
engineDoFinal()
Completes the HMAC computation and resets the HMAC for further use, maintaining the secret key that the HMAC was initialized with. |
protected int |
engineGetMacLength()
Returns the length of the HMAC in bytes. |
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
Initializes the HMAC with the given secret key and algorithm parameters. |
protected void |
engineReset()
Resets the HMAC for further use, maintaining the secret key that the HMAC was initialized with. |
protected void |
engineUpdate(byte input)
Processes the given byte. |
protected void |
engineUpdate(byte[] input,
int offset,
int len)
Processes the first len bytes in input,
starting at offset. |
java.lang.Object |
internalClone()
|
protected byte[] |
internalDoFinal()
Completes the HMAC computation and resets the HMAC for further use, maintaining the secret key that the HMAC was initialized with. |
protected int |
internalGetMacLength()
Returns the length of the HMAC in bytes. |
protected void |
internalInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
Initializes the HMAC with the given secret key and algorithm parameters. |
protected void |
internalReset()
Resets the HMAC for further use, maintaining the secret key that the HMAC was initialized with. |
protected void |
internalUpdate(byte input)
Processes the given byte. |
protected void |
internalUpdate(byte[] input,
int offset,
int len)
Processes the first len bytes in input,
starting at offset. |
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 HmacSHA1()
throws java.security.NoSuchAlgorithmException
java.lang.SecurityException - if fails to verify
the JCE framework.| Method Detail |
public boolean isFipsApproved()
AlgorithmStatusisFipsApproved in interface AlgorithmStatusAlgorithmStatus.isFipsApproved()protected int engineGetMacLength()
engineGetMacLength in class javax.crypto.MacSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected int internalGetMacLength()
protected void engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
engineInit in class javax.crypto.MacSpikey - the secret key.params - the algorithm parameters.java.security.InvalidKeyException - if the given key is inappropriate for
initializing this MAC.java.security.InvalidAlgorithmParameterException - if the given algorithm
parameters are inappropriate for this MAC.FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
key - the secret key.params - the algorithm parameters.java.security.InvalidKeyException - if the given key is inappropriate for
initializing this MAC.java.security.InvalidAlgorithmParameterException - if the given algorithm
parameters are inappropriate for this MAC.protected void engineUpdate(byte input)
engineUpdate in class javax.crypto.MacSpiinput - the input byte to be processed.FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected void internalUpdate(byte input)
input - the input byte to be processed.
protected void engineUpdate(byte[] input,
int offset,
int len)
len bytes in input,
starting at offset.engineUpdate in class javax.crypto.MacSpiinput - the input buffer.offset - the offset in input where the input starts.len - the number of bytes to process.FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalUpdate(byte[] input,
int offset,
int len)
len bytes in input,
starting at offset.input - the input buffer.offset - the offset in input where the input starts.len - the number of bytes to process.protected byte[] engineDoFinal()
engineDoFinal in class javax.crypto.MacSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected byte[] internalDoFinal()
protected void engineReset()
engineReset in class javax.crypto.MacSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected void internalReset()
public java.lang.Object clone()
clone in class javax.crypto.MacSpipublic java.lang.Object internalClone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||