public class LunaMac extends MacSpi
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
mByteArray |
protected LunaSecretKey |
mKey |
protected int |
mMacLength |
protected long |
mMechType |
| Constructor and Description |
|---|
LunaMac(long mechType,
int macLength)
Creates a new LunaMac
|
| Modifier and Type | Method and Description |
|---|---|
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[] input,
int offset,
int len) |
clone, engineUpdateprotected long mMechType
protected LunaSecretKey mKey
protected int mMacLength
protected byte[] mByteArray
public LunaMac(long mechType,
int macLength)
mechType - mechanismmacLength - length of digestprotected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, ProviderException
engineInit in class MacSpiInvalidKeyExceptionProviderExceptionprotected void engineUpdate(byte b)
engineUpdate in class MacSpiprotected void engineUpdate(byte[] input,
int offset,
int len)
engineUpdate in class MacSpiprotected byte[] engineDoFinal()
engineDoFinal in class MacSpiprotected void engineReset()
throws ProviderException
engineReset in class MacSpiProviderExceptionprotected int engineGetMacLength()
engineGetMacLength in class MacSpiCopyright 2014-2016 SafeNet Inc