i'm using the following code to get a AESCMAC
Mac mac = Mac.getInstance("aescmac", new BouncyCastleProvider());
mac.init(k_mac );
byte[] tooLong = mac.doFinal(tmp);
doFinal will generate a byte-Array with the size of 16, but i would like it to be 8 bytes long. i see there is a method getMacLength() with returns 16 but no setMacLength method. thx for your help