private byte[] calculateMac(byte[] key_m) { try { ByteArrayOutputStream macData = new ByteArrayOutputStream(); writeWithoutMAC(macData); return Security.mac(key_m, macData.toByteArray()); } catch (IOException e) { throw new RuntimeException(e); } }
private byte[] calculateMac(byte[] key_m) { try { ByteArrayOutputStream macData = new ByteArrayOutputStream(); writeWithoutMAC(macData); return Security.mac(key_m, macData.toByteArray()); } catch (IOException e) { throw new RuntimeException(e); } }