private void sign(byte[] body, OutputStream compressedOutput) throws Exception {
final PGPSignatureGenerator signatureGenerator = getSignatureGenerator(owner.getUnlockedMasterKey());
signatureGenerator.generateOnePassVersion(false).encode(compressedOutput);
final OutputStream literalOutput = getLiteralWrapper(compressedOutput);
literalOutput.write(body);
signatureGenerator.update(body);
literalOutput.close();
signatureGenerator.generate().encode(compressedOutput);
}
private OutputStream getEncryptionWrapper(OutputStream out) throws Exception {