Beispiel #1
0
        public void AddMosExtension()
        {
            if (ExtensionsList.Count > 0)
            {
                ExtensionsList[ExtensionsList.Count - 1].properties1.moreToFollow = 1;
            }

            ExtensionsList.Add(
                new COMMAND_CLASS_SECURITY_2.SECURITY_2_MESSAGE_ENCAPSULATION.TVG1
            {
                extensionLength = GetLengthByExtensionType(ExtensionTypes.Mos),
                properties1     = new COMMAND_CLASS_SECURITY_2.SECURITY_2_MESSAGE_ENCAPSULATION.TVG1.Tproperties1
                {
                    moreToFollow = 0,
                    critical     = 0,
                    type         = (byte)ExtensionTypes.Mos
                }
            });
        }
Beispiel #2
0
        public void AddSpanExtension(byte[] senderEntropyInput)
        {
            if (ExtensionsList.Count > 0)
            {
                ExtensionsList[ExtensionsList.Count - 1].properties1.moreToFollow = 1;
            }

            ExtensionsList.Add(
                new COMMAND_CLASS_SECURITY_2.SECURITY_2_MESSAGE_ENCAPSULATION.TVG1
            {
                extensionLength = GetLengthByExtensionType(ExtensionTypes.Span),
                properties1     = new COMMAND_CLASS_SECURITY_2.SECURITY_2_MESSAGE_ENCAPSULATION.TVG1.Tproperties1
                {
                    moreToFollow = 0,
                    critical     = 1,
                    type         = (byte)ExtensionTypes.Span
                },
                extension = new List <byte>(senderEntropyInput)
            });
        }
Beispiel #3
0
        public void AddMpanGrpExtension(byte groupId)
        {
            if (ExtensionsList.Count > 0)
            {
                ExtensionsList[ExtensionsList.Count - 1].properties1.moreToFollow = 1;
            }

            ExtensionsList.Add(
                new COMMAND_CLASS_SECURITY_2.SECURITY_2_MESSAGE_ENCAPSULATION.TVG1
            {
                extensionLength = GetLengthByExtensionType(ExtensionTypes.MpanGrp),
                properties1     = new COMMAND_CLASS_SECURITY_2.SECURITY_2_MESSAGE_ENCAPSULATION.TVG1.Tproperties1
                {
                    moreToFollow = 0,
                    critical     = 1,
                    type         = (byte)ExtensionTypes.MpanGrp
                },
                extension = new List <byte>(new[] { groupId })
            });
        }