|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.crypto.MacSpi
|
+--gnu.crypto.jce.mac.MacAdapter
|
+--gnu.crypto.jce.mac.HMacMD4Spi
The implementation of the HMAC-MD4 Service Provider Interface (SPI) adapter.
| Field Summary | |
|---|---|
protected java.util.Map |
attributes
Our MAC attributes. |
protected IMac |
mac
Our MAC instance. |
| Constructor Summary | |
|---|---|
HMacMD4Spi()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone if the implementation is cloneable. |
protected byte[] |
engineDoFinal()
Completes the MAC computation and resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
protected int |
engineGetMacLength()
Returns the length of the MAC in bytes. |
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
Initializes the MAC with the given (secret) key and algorithm parameters. |
protected void |
engineReset()
Resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
protected void |
engineUpdate(byte b)
Processes the given byte. |
protected void |
engineUpdate(byte[] in,
int off,
int len)
Processes the first len bytes in input,
starting at offset inclusive. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IMac mac
protected java.util.Map attributes
| Constructor Detail |
public HMacMD4Spi()
| Method Detail |
public java.lang.Object clone()
MacSpi
clone in class MacSpiprotected byte[] engineDoFinal()
MacSpi
engineDoFinal in class MacSpiprotected int engineGetMacLength()
MacSpi
engineGetMacLength in class MacSpi
protected void engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
MacSpi
engineInit in class 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.protected void engineReset()
MacSpi
engineReset in class MacSpiprotected void engineUpdate(byte b)
MacSpi
engineUpdate in class MacSpib - - the input byte to be processed.
protected void engineUpdate(byte[] in,
int off,
int len)
MacSpilen bytes in input,
starting at offset inclusive.
engineUpdate in class MacSpiin - the input buffer.off - the offset in input where the input starts.len - the number of bytes to process.
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||