pOut.write(clearText);
lData.close();
comData.close();
PGPEncryptedDataGenerator cPk = new PGPEncryptedDataGenerator(SymmetricKeyAlgorithmMap.convert(algorithm),
new SecureRandom(), "BC");
cPk.addMethod(passPhrase);
byte[] bytes = bOut.toByteArray();
OutputStream cOut = cPk.open(encOut, bytes.length);
cOut.write(bytes); // obtain the actual bytes from the compressed stream
cOut.close();
return encOut.toByteArray();