Hi 

As I started to work on key revocation I noticed that some methods where 
missing from PgpSignatureSubPacketGenerator that are present on the Java 
library for setting the revocation reason and the the key fingerprint to 
generate the certificate for, I should be able with the generator to do 
.setRevocationReason(false, reason, description) and add that to the 
HashedPacket and use .setIssuerKeyID() in another generator to generate an 
unhashed packet to add. Are these implemented in the C# library or the Java 
approach is different from the C# approach on this one?

            PgpSignatureSubpacketGenerator subHashGenerator = new 
PgpSignatureSubpacketGenerator();
            PgpPrivateKey privKey = SecretKey.ExtractPrivateKey(passPhrase);
            PgpSignatureGenerator generator = new 
PgpSignatureGenerator(SecretKey.PublicKey.Algorithm , HashAlgorithmTag.Sha1);
            generator.InitSign(PgpSignature.KeyRevocation, privKey, new 
SecureRandom());
            subHashGenerator.SetSignatureCreationTime(true, DateTime.UtcNow);

Reply via email to