ToAsn1Object() public method

public ToAsn1Object ( ) : Asn1Object
return Org.BouncyCastle.Asn1.Asn1Object
 public KeyTransRecipientInfo(RecipientIdentifier rid, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
 {
     if (rid.ToAsn1Object() is Asn1TaggedObject)
     {
         version = new DerInteger(2);
     }
     else
     {
         version = new DerInteger(0);
     }
     this.rid = rid;
     this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
     this.encryptedKey           = encryptedKey;
 }
Ejemplo n.º 2
0
		public KeyTransRecipientInfo(
            RecipientIdentifier rid,
            AlgorithmIdentifier keyEncryptionAlgorithm,
            Asn1OctetString     encryptedKey)
        {
            if (rid.ToAsn1Object() is Asn1TaggedObject)
            {
                this.version = new DerInteger(2);
            }
            else
            {
                this.version = new DerInteger(0);
            }

			this.rid = rid;
            this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
            this.encryptedKey = encryptedKey;
        }