OutputStream cOut = cPk.open(encOut, bytes.length);
cOut.write(bytes); // obtain the actual bytes from the compressed stream
cOut.close();
return encOut.toByteArray();
} catch (NoSuchProviderException ex) {
throw new CryptoException(ex.getMessage(), ex);
} catch (PGPException ex) {
throw new CryptoException(ex.getMessage(), ex);
}
}