|
Cumulus4j API (1.2.0) |
|||||||||
| 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 MacIllegalArgumentExceptionpublic CipherParameters getParameters()
getParameters in interface MACCalculatorpublic int getKeySize()
MACCalculator
getKeySize in interface MACCalculatorpublic int getIVSize()
MACCalculator
getIVSize in interface MACCalculatorpublic void setAlgorithmName(String algorithmName)
setAlgorithmName in interface MACCalculatorpublic String getAlgorithmName()
getAlgorithmName in interface Macpublic int getMacSize()
getMacSize in interface Mac
public void update(byte in)
throws IllegalStateException
update in interface MacIllegalStateException
public void update(byte[] in,
int inOff,
int len)
throws DataLengthException,
IllegalStateException
update in interface MacDataLengthException
IllegalStateException
public int doFinal(byte[] out,
int outOff)
throws DataLengthException,
IllegalStateException
doFinal in interface MacDataLengthException
IllegalStateException
public byte[] doFinal(byte[] in)
throws IllegalStateException
MACCalculator
doFinal in interface MACCalculatorin - the input to calculate a MAC for.
IllegalStateException - if the MACCalculator isn't initialised.public void reset()
reset in interface Mac
|
Cumulus4j API (1.2.0) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||