Пример #1
0
 public SesSignature(TbsSign toSign, Asn1OctetString cert, DerObjectIdentifier signatureAlgId, DerBitString signature)
 {
     TbsSign        = toSign;
     Cert           = cert;
     SignatureAlgId = signatureAlgId;
     Signature      = signature;
 }
Пример #2
0
        public SesSignature(Asn1Sequence seq)
        {
            var e = seq.GetEnumerator();

            TbsSign        = TbsSign.GetInstance(e.Next());
            Cert           = Asn1OctetString.GetInstance(e.Next());
            SignatureAlgId = DerObjectIdentifier.GetInstance(e.Next());
            Signature      = DerBitString.GetInstance(e.Next());
            if (e.MoveNext())
            {
                TimeStamp = DerBitString.GetInstance(e.Next());
            }
        }