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.MacSpi
java.security.InvalidKeyException
java.security.ProviderException
protected void engineUpdate(byte b)
engineUpdate
in class javax.crypto.MacSpi
protected void engineUpdate(byte[] input, int offset, int len)
engineUpdate
in class javax.crypto.MacSpi
protected byte[] engineDoFinal()
engineDoFinal
in class javax.crypto.MacSpi
protected void engineReset() throws java.security.ProviderException
engineReset
in class javax.crypto.MacSpi
java.security.ProviderException
protected int engineGetMacLength()
engineGetMacLength
in class javax.crypto.MacSpi
Copyright 2014-2018 SafeNet. All rights reserved.