gnu.crypto.jce.mac
class MacAdapter extends MacSpi implements Cloneable
The implementation of a generic javax.crypto.Mac adapter class to wrap GNU Crypto MAC instances.
This class defines the Service Provider Interface (SPI) for the javax.crypto.Mac class, which provides the functionality of a message authentication code algorithm, such as the Hashed Message Authentication Code (HMAC) algorithms.
Version: $Revision: 1.4 $
| Field Summary | |
|---|---|
| protected Map | attributes Our MAC attributes. |
| protected IMac | mac Our MAC instance. |
| Constructor Summary | |
|---|---|
| protected | MacAdapter(String name) Creates a new Mac instance for the given name. |
| Method Summary | |
|---|---|
| Object | clone() |
| protected byte[] | engineDoFinal() |
| protected int | engineGetMacLength() |
| protected void | engineInit(Key key, AlgorithmParameterSpec params) |
| protected void | engineReset() |
| protected void | engineUpdate(byte b) |
| protected void | engineUpdate(byte[] in, int off, int len) |
Creates a new Mac instance for the given name.
Parameters: name The name of the mac to create.