gnu.crypto.jce.mac
Class MacAdapter
MacSpi
gnu.crypto.jce.mac.MacAdapter
- Cloneable
(package private) class MacAdapter
extends MacSpi
implements Cloneable
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.
MacAdapter(String name) - Creates a new Mac instance for the given name.
|
attributes
protected Map attributes
Our MAC attributes.
mac
protected IMac mac
Our MAC instance.
MacAdapter
protected MacAdapter(String name)
Creates a new Mac instance for the given name.
name
- The name of the mac to create.
clone
public Object clone()
throws CloneNotSupportedException
engineDoFinal
protected byte[] engineDoFinal()
engineGetMacLength
protected int engineGetMacLength()
engineInit
protected void engineInit(Key key,
AlgorithmParameterSpec params)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineReset
protected void engineReset()
engineUpdate
protected void engineUpdate(byte b)
engineUpdate
protected void engineUpdate(byte[] in,
int off,
int len)
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.