|
Cumulus4j API (1.0.1) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cumulus4j.crypto.internal.mac.MACCalculatorImpl
public class MACCalculatorImpl
Constructor Summary | |
---|---|
MACCalculatorImpl(Mac macEngine,
int keySize,
int ivSize)
|
Method Summary | |
---|---|
byte[] |
doFinal(byte[] in)
Convenience method to process the complete input byte array at once. |
int |
doFinal(byte[] out,
int outOff)
|
String |
getAlgorithmName()
|
int |
getIVSize()
Get the required size of the IV (in bytes). |
int |
getKeySize()
Get the required size of the key (in bytes). |
int |
getMacSize()
|
CipherParameters |
getParameters()
|
void |
init(CipherParameters params)
|
void |
reset()
|
void |
setAlgorithmName(String algorithmName)
|
void |
update(byte in)
|
void |
update(byte[] in,
int inOff,
int len)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MACCalculatorImpl(Mac macEngine, int keySize, int ivSize)
Method Detail |
---|
public void init(CipherParameters params) throws IllegalArgumentException
init
in interface Mac
IllegalArgumentException
public CipherParameters getParameters()
getParameters
in interface MACCalculator
public int getKeySize()
MACCalculator
getKeySize
in interface MACCalculator
public int getIVSize()
MACCalculator
getIVSize
in interface MACCalculator
public void setAlgorithmName(String algorithmName)
setAlgorithmName
in interface MACCalculator
public String getAlgorithmName()
getAlgorithmName
in interface Mac
public int getMacSize()
getMacSize
in interface Mac
public void update(byte in) throws IllegalStateException
update
in interface Mac
IllegalStateException
public void update(byte[] in, int inOff, int len) throws DataLengthException, IllegalStateException
update
in interface Mac
DataLengthException
IllegalStateException
public int doFinal(byte[] out, int outOff) throws DataLengthException, IllegalStateException
doFinal
in interface Mac
DataLengthException
IllegalStateException
public byte[] doFinal(byte[] in) throws IllegalStateException
MACCalculator
doFinal
in interface MACCalculator
in
- the input to calculate a MAC for.
IllegalStateException
- if the MACCalculator
isn't initialised.public void reset()
reset
in interface Mac
|
Cumulus4j API (1.0.1) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |