Exemplo n.º 1
0
 public OtherInfo(
     KeySpecificInfo	keyInfo,
     Asn1OctetString	partyAInfo,
     Asn1OctetString	suppPubInfo)
 {
     this.keyInfo = keyInfo;
     this.partyAInfo = partyAInfo;
     this.suppPubInfo = suppPubInfo;
 }
Exemplo n.º 2
0
        public OtherInfo(
            Asn1Sequence seq)
        {
            IEnumerator e = seq.GetEnumerator();

            e.MoveNext();
            keyInfo = new KeySpecificInfo((Asn1Sequence) e.Current);

            while (e.MoveNext())
            {
                DerTaggedObject o = (DerTaggedObject) e.Current;

                if (o.TagNo == 0)
                {
                    partyAInfo = (Asn1OctetString) o.GetObject();
                }
                else if ((int) o.TagNo == 2)
                {
                    suppPubInfo = (Asn1OctetString) o.GetObject();
                }
            }
        }