public class LunaMac
extends javax.crypto.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(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params) |
protected void |
engineReset() |
protected void |
engineUpdate(byte b) |
protected void |
engineUpdate(byte[] input,
int offset,
int len) |
protected long mMechType
protected LunaSecretKey mKey
protected int mMacLength
protected byte[] mByteArray
public LunaMac(long mechType,
int macLength)
mechType - mechanismmacLength - length of digestprotected void engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
throws java.security.InvalidKeyException,
java.security.ProviderException
engineInit in class javax.crypto.MacSpijava.security.InvalidKeyExceptionjava.security.ProviderExceptionprotected void engineUpdate(byte b)
engineUpdate in class javax.crypto.MacSpiprotected void engineUpdate(byte[] input,
int offset,
int len)
engineUpdate in class javax.crypto.MacSpiprotected byte[] engineDoFinal()
engineDoFinal in class javax.crypto.MacSpiprotected void engineReset()
throws java.security.ProviderException
engineReset in class javax.crypto.MacSpijava.security.ProviderExceptionprotected int engineGetMacLength()
engineGetMacLength in class javax.crypto.MacSpiCopyright 2014-2018 SafeNet. All rights reserved.