pGen.init(
PBEParametersGenerator.PKCS12PasswordToBytes(p),
getSalt(),
iCount);
final ParametersWithIV params = (ParametersWithIV)pGen.generateDerivedParameters(192, 128);
final SecretKeySpec encKey = new SecretKeySpec(((KeyParameter)params.getParameters()).getKey(), "AES");
final Cipher c;
c = Cipher.getInstance("AES/CBC/PKCS7Padding", "BC");
c.init(Cipher.ENCRYPT_MODE, encKey, new IvParameterSpec(params.getIV()));