FileDecryptor dec = getFileDecryptor();
dec.decrypt(encrypted, output, new FileBasedKey(keyFile), "receiver".toCharArray());
}
private FileDecryptor getFileDecryptor() {
PgpProvider provider = BouncyCastlePgpProvider.getInstance();
return new FileDecryptor(provider.getDecryptor());
}