use of org.openecard.bouncycastle.crypto.engines.AESFastEngine in project open-ecard by ecsec.
the class SecureMessaging method getCMAC.
/**
* Gets the CMAC.
*
* @param smssc Secure Messaging Send Sequence Counter
* @return CMAC
*/
private CMac getCMAC(byte[] smssc) {
CMac cmac = new CMac(new AESFastEngine());
cmac.init(new KeyParameter(keyMAC));
cmac.update(smssc, 0, smssc.length);
return cmac;
}
Aggregations