Ejemplo n.º 1
0
    public OtherInfo(Asn1Sequence seq)
    {
        IEnumerator enumerator = seq.GetEnumerator();

        enumerator.MoveNext();
        keyInfo = new KeySpecificInfo((Asn1Sequence)enumerator.Current);
        while (enumerator.MoveNext())
        {
            DerTaggedObject derTaggedObject = (DerTaggedObject)enumerator.Current;
            if (derTaggedObject.TagNo == 0)
            {
                partyAInfo = (Asn1OctetString)derTaggedObject.GetObject();
            }
            else if (derTaggedObject.TagNo == 2)
            {
                suppPubInfo = (Asn1OctetString)derTaggedObject.GetObject();
            }
        }
    }
Ejemplo n.º 2
0
 public OtherInfo(KeySpecificInfo keyInfo, Asn1OctetString partyAInfo, Asn1OctetString suppPubInfo)
 {
     this.keyInfo     = keyInfo;
     this.partyAInfo  = partyAInfo;
     this.suppPubInfo = suppPubInfo;
 }