Inheritance: Asn1Encodable, IAsn1Choice
        private ProofOfPossession(Asn1TaggedObject tagged)
        {
            tagNo = tagged.TagNo;
            switch (tagNo)
            {
            case 0:
                obj = DerNull.Instance;
                break;

            case 1:
                obj = PopoSigningKey.GetInstance(tagged, false);
                break;

            case 2:
            case 3:
                obj = PopoPrivKey.GetInstance(tagged, false);
                break;

            default:
                throw new ArgumentException("unknown tag: " + tagNo, "tagged");
            }
        }
Exemple #2
0
        private ProofOfPossession(Asn1TaggedObject tagged)
        {
            //IL_0073: Unknown result type (might be due to invalid IL or missing references)
            tagNo = tagged.TagNo;
            switch (tagNo)
            {
            case 0:
                obj = DerNull.Instance;
                break;

            case 1:
                obj = PopoSigningKey.GetInstance(tagged, isExplicit: false);
                break;

            case 2:
            case 3:
                obj = PopoPrivKey.GetInstance(tagged, isExplicit: false);
                break;

            default:
                throw new ArgumentException(string.Concat((object)"unknown tag: ", (object)tagNo), "tagged");
            }
        }
 /**
  * Creates a ProofOfPossession for key encipherment or agreement.
  * @param type one of TYPE_KEY_ENCIPHERMENT or TYPE_KEY_AGREEMENT
  */
 public ProofOfPossession(int type, PopoPrivKey privkey)
 {
     tagNo = type;
     obj   = privkey;
 }
 /**
  * Creates a ProofOfPossession for key encipherment or agreement.
  * @param type one of TYPE_KEY_ENCIPHERMENT or TYPE_KEY_AGREEMENT
  */
 public ProofOfPossession(int type, PopoPrivKey privkey)
 {
     tagNo = type;
     obj = privkey;
 }