|
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
The implementation of a generic Mac
adapter class
to wrap GNU Crypto MAC instances.
This class defines the Service Provider Interface (SPI) for
the Mac
class, which provides the functionality of a
message authentication code algorithm, such as the Hashed Message
Authentication Code (HMAC) algorithms.
Field Summary | |
protected java.util.Map |
attributes
Our MAC attributes. |
protected IMac |
mac
Our MAC instance. |
Constructor Summary | |
protected |
MacAdapter(java.lang.String name)
Creates a new Mac instance for the given name. |
Method Summary | |
java.lang.Object |
clone()
|
protected byte[] |
engineDoFinal()
|
protected int |
engineGetMacLength()
|
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
|
protected void |
engineReset()
|
protected void |
engineUpdate(byte b)
|
protected void |
engineUpdate(byte[] in,
int off,
int len)
|
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 |
protected MacAdapter(java.lang.String name)
Creates a new Mac instance for the given name.
name
- The name of the mac to create.Method Detail |
public java.lang.Object clone()
clone
in class javax.crypto.MacSpi
protected byte[] engineDoFinal()
engineDoFinal
in class javax.crypto.MacSpi
protected int engineGetMacLength()
engineGetMacLength
in class javax.crypto.MacSpi
protected void engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
engineInit
in class javax.crypto.MacSpi
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
protected void engineReset()
engineReset
in class javax.crypto.MacSpi
protected void engineUpdate(byte b)
engineUpdate
in class javax.crypto.MacSpi
protected void engineUpdate(byte[] in, int off, int len)
engineUpdate
in class javax.crypto.MacSpi
|
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 |