CompressionAlgorithmTags.BZIP2,
CompressionAlgorithmTags.ZIP};
svg.setPreferredCompressionAlgorithms(true, comprAlgs);
svg.setFeature(true, Features.FEATURE_MODIFICATION_DETECTION);
svg.setKeyFlags(true, KeyFlags.CERTIFY_OTHER + KeyFlags.SIGN_DATA);
PGPSignatureSubpacketVector hashedPcks = svg.generate();
PGPKeyRingGenerator keyRingGen = new PGPKeyRingGenerator(PGPSignature.POSITIVE_CERTIFICATION,
sgnKeyPair, identity, PGPEncryptedData.AES_256, passPhrase,
true, hashedPcks, unhashedPcks, new SecureRandom(), "BC");