public void initialize(OutputStream out) throws Exception
{
armoredOut = new ArmoredOutputStream(out);
PGPEncryptedDataGenerator encrDataGen = new PGPEncryptedDataGenerator(PGPEncryptedData.CAST5, false,
new SecureRandom(), provider);
encrDataGen.addMethod(this.publicKey);
encryptedOutputStream = encrDataGen.open(armoredOut, new byte[1 << 16]);
PGPCompressedDataGenerator comprDataGen = new PGPCompressedDataGenerator(PGPCompressedData.ZIP);
compressedEncryptedOutputStream = comprDataGen.open(encryptedOutputStream);