示例#1
0
 public OtherInfo(
     KeySpecificInfo keyInfo,
     ASN1OctetString partyAInfo,
     ASN1OctetString suppPubInfo)
 {
     this.keyInfo     = keyInfo;
     this.partyAInfo  = partyAInfo;
     this.suppPubInfo = suppPubInfo;
 }
示例#2
0
        public OtherInfo(
            ASN1Sequence seq)
        {
            IEnumerator e = seq.getObjects();

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

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

                if (o.getTagNo() == 0)
                {
                    partyAInfo = (ASN1OctetString)o.getObject();
                }
                else if ((int)o.getTagNo() == 2)
                {
                    suppPubInfo = (ASN1OctetString)o.getObject();
                }
            }
        }