Esempio n. 1
0
        private PopoPrivKey(Asn1TaggedObject obj)
        {
            this.tagNo = obj.TagNo;

            switch (tagNo)
            {
            case thisMessage:
                this.obj = DerBitString.GetInstance(obj, false);
                break;

            case subsequentMessage:
                this.obj = SubsequentMessage.ValueOf(DerInteger.GetInstance(obj, false).Value.IntValue);
                break;

            case dhMAC:
                this.obj = DerBitString.GetInstance(obj, false);
                break;

            case agreeMAC:
                this.obj = PKMacValue.GetInstance(obj, false);
                break;

            case encryptedKey:
                this.obj = EnvelopedData.GetInstance(obj, false);
                break;

            default:
                throw new ArgumentException("unknown tag in PopoPrivKey", "obj");
            }
        }
Esempio n. 2
0
        private PopoPrivKey(Asn1TaggedObject obj)
        {
            //IL_0094: Unknown result type (might be due to invalid IL or missing references)
            tagNo = obj.TagNo;
            switch (tagNo)
            {
            case 0:
                this.obj = DerBitString.GetInstance(obj, isExplicit: false);
                break;

            case 1:
                this.obj = SubsequentMessage.ValueOf(DerInteger.GetInstance(obj, isExplicit: false).Value.IntValue);
                break;

            case 2:
                this.obj = DerBitString.GetInstance(obj, isExplicit: false);
                break;

            case 3:
                this.obj = PKMacValue.GetInstance(obj, isExplicit: false);
                break;

            case 4:
                this.obj = EnvelopedData.GetInstance(obj, explicitly: false);
                break;

            default:
                throw new ArgumentException("unknown tag in PopoPrivKey", "obj");
            }
        }
Esempio n. 3
0
        private PopoPrivKey(Asn1TaggedObject obj)
        {
            this.tagNo = obj.TagNo;
            switch (this.tagNo)
            {
            case 0:
                this.obj = DerBitString.GetInstance(obj, false);
                return;

            case 1:
                this.obj = SubsequentMessage.ValueOf(DerInteger.GetInstance(obj, false).Value.IntValue);
                return;

            case 2:
                this.obj = DerBitString.GetInstance(obj, false);
                return;

            case 3:
                this.obj = PKMacValue.GetInstance(obj, false);
                return;

            case 4:
                this.obj = EnvelopedData.GetInstance(obj, false);
                return;

            default:
                throw new ArgumentException("unknown tag in PopoPrivKey", "obj");
            }
        }
Esempio n. 4
0
 public PopoPrivKey(SubsequentMessage msg)
 {
     this.tagNo = subsequentMessage;
     this.obj = msg;
 }
Esempio n. 5
0
 public PopoPrivKey(SubsequentMessage msg)
 {
     this.tagNo = subsequentMessage;
     this.obj   = msg;
 }
Esempio n. 6
0
 public PopoPrivKey(SubsequentMessage msg)
 {
     tagNo = 1;
     obj   = msg;
 }