Example #1
0
 public ValidSigMessage(string[] arguments) : base(StatusMessageType.ValidSig)
 {
     sigFingerprint     = arguments[0].ToUpperInvariant();
     sigTime            = GPG.ParseTimestamp(arguments[2]);
     sigExpiration      = GPG.ParseNullableTimestamp(arguments[3]);
     keyType            = GPG.ParseKeyType(arguments[6]);
     hashAlgo           = GPG.ParseHashAlgorithm(arguments[7]);
     primaryFingerprint = arguments[9].ToUpperInvariant();
 }
Example #2
0
        public AttributeMessage(string[] arguments) : base(StatusMessageType.Attribute)
        {
            length     = int.Parse(arguments[1]);
            type       = (OpenPGPAttributeType)int.Parse(arguments[2]);
            creation   = GPG.ParseNullableTimestamp(arguments[5]);
            expiration = GPG.ParseNullableTimestamp(arguments[6]);

            int flags = int.Parse(arguments[7]);

            primary = (flags & 1) != 0;
            revoked = (flags & 2) != 0;
            expired = (flags & 4) != 0;
        }