Package de.cardcontact.opencard.security
Class MessageAuthenticationCode
- java.lang.Object
-
- de.cardcontact.opencard.security.MessageAuthenticationCode
-
public abstract class MessageAuthenticationCode extends java.lang.Object
Message Authentication Code generator supporting a fallback CMAC (e.g. for Android)
-
-
Constructor Summary
Constructors Constructor Description MessageAuthenticationCode()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte[]
doFinal(byte[] input)
static MessageAuthenticationCode
getInstance(java.lang.String algo, java.lang.String provider)
abstract void
init(java.security.Key key)
-
-
-
Method Detail
-
getInstance
public static MessageAuthenticationCode getInstance(java.lang.String algo, java.lang.String provider) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
init
public abstract void init(java.security.Key key)
-
doFinal
public abstract byte[] doFinal(byte[] input)
-
-