|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.crypto.MacSpi
com.ibm.crypto.provider.HmacMD5
public final class HmacMD5
This is an implementation of the HMAC-MD5 algorithm.
| Constructor Summary | |
|---|---|
HmacMD5()
Standard constructor, creates a new HmacMD5 instance. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone if the implementation is cloneable. |
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(Key key,
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. |
| Methods inherited from class javax.crypto.MacSpi |
|---|
engineUpdate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HmacMD5()
throws NoSuchAlgorithmException
SecurityException - if fails to verify
the JCE framework.
NoSuchAlgorithmException| Method Detail |
|---|
protected int engineGetMacLength()
engineGetMacLength in class MacSpi
protected void engineInit(Key key,
AlgorithmParameterSpec params)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class MacSpikey - the secret key.params - the algorithm parameters.
InvalidKeyException - if the given key is inappropriate for
initializing this MAC.
InvalidAlgorithmParameterException - if the given algorithm
parameters are inappropriate for this MAC.protected void engineUpdate(byte input)
engineUpdate in class MacSpiinput - 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 MacSpiinput - 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 MacSpiprotected void engineReset()
engineReset in class MacSpipublic Object clone()
MacSpi
clone in class MacSpi
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||