Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrDecoder.ParseTsSecurityHeaderNonFips C# (CSharp) Method

ParseTsSecurityHeaderNonFips() private method

Parse TS_SECURITY_HEADER (NON-FIPS) (parser index is updated according to parsed length)
private ParseTsSecurityHeaderNonFips ( byte data, int &currentIndex ) : TS_SECURITY_HEADER
data byte data to be parsed
currentIndex int current parser index
return TS_SECURITY_HEADER
        private TS_SECURITY_HEADER ParseTsSecurityHeaderNonFips(byte[] data, ref int currentIndex)
        {
            TS_SECURITY_HEADER1 header = new TS_SECURITY_HEADER1();

            // TS_SECURITY_HEADER1: flags
            header.flags = (TS_SECURITY_HEADER_flags_Values)ParseUInt16(data, ref currentIndex, false);

            // TS_SECURITY_HEADER1: flagsHi
            header.flagsHi = ParseUInt16(data, ref currentIndex, false);

            // TS_SECURITY_HEADER1: dataSignature
            header.dataSignature = GetBytes(data, ref currentIndex,
                ConstValue.TS_SECURITY_HEADER_DATA_SIGNATURE_LENGTH);

            return header;
        }
RdpbcgrDecoder