|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MACCalculator
A MACCalculator
calculates message
authentication codes.
Use CryptoRegistry.createMACCalculator(String, boolean)
to obtain a MACCalculator
instance.
Important: MACCalculator
s are not thread-safe!
Method Summary | |
---|---|
byte[] |
doFinal(byte[] in)
Convenience method to process the complete input byte array at once. |
int |
getIVSize()
Get the required size of the IV (in bytes). |
int |
getKeySize()
Get the required size of the key (in bytes). |
CipherParameters |
getParameters()
|
void |
setAlgorithmName(String algorithmName)
|
Methods inherited from interface org.bouncycastle.crypto.Mac |
---|
doFinal, getAlgorithmName, getMacSize, init, reset, update, update |
Method Detail |
---|
void setAlgorithmName(String algorithmName)
CipherParameters getParameters()
int getKeySize()
int getIVSize()
byte[] doFinal(byte[] in) throws IllegalStateException
in
- the input to calculate a MAC for.
IllegalStateException
- if the MACCalculator
isn't initialised.
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |