public override int Encode(Asn1BerEncodeBuffer buffer, bool explicitTagging)
        {
            var len = 0;

            var num2 = _encryptionParamSet.Encode(buffer, true);

            len += num2;

            num2 = _iv.Encode(buffer, true);
            len += num2;

            if (explicitTagging)
            {
                len += buffer.EncodeTagAndLength(Asn1Tag.Sequence, len);
            }

            return(len);
        }
Beispiel #2
0
        public override int Encode(Asn1BerEncodeBuffer buffer, bool explicitTagging)
        {
            int num2;
            var len = 0;

            if (_extElem1 != null)
            {
                num2 = _extElem1.Encode(buffer, false);
                len += num2;
            }

            num2 = EncryptionParamSet.Encode(buffer, true);
            len += num2;

            if (explicitTagging)
            {
                len += buffer.EncodeTagAndLength(Asn1Tag.Sequence, len);
            }

            return(len);
        }