Org.BouncyCastle.Asn1.Cms.KeyAgreeRecipientInfo.KeyAgreeRecipientInfo C# (CSharp) Method

KeyAgreeRecipientInfo() public method

public KeyAgreeRecipientInfo ( Asn1Sequence seq ) : System
seq Org.BouncyCastle.Asn1.Asn1Sequence
return System
		public KeyAgreeRecipientInfo(
            Asn1Sequence seq)
        {
            int index = 0;

            version = (DerInteger) seq[index++];
            originator = OriginatorIdentifierOrKey.GetInstance(
				(Asn1TaggedObject) seq[index++], true);

			if (seq[index] is Asn1TaggedObject)
            {
                ukm = Asn1OctetString.GetInstance(
					(Asn1TaggedObject) seq[index++], true);
            }

			keyEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(
				seq[index++]);

			recipientEncryptedKeys = (Asn1Sequence) seq[index++];
        }

Same methods

KeyAgreeRecipientInfo::KeyAgreeRecipientInfo ( OriginatorIdentifierOrKey originator, Asn1OctetString ukm, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1Sequence recipientEncryptedKeys ) : System