Example #1
0
        public static bool TrySlice(MemoryCursor cursor)
        {
            if (!HandshakeType.TrySlice(cursor, HandshakeType.EncryptedExtensions))
            {
                return(false);
            }

            HandshakeLength.SliceBytes(cursor);

            return(true);
        }
Example #2
0
        public static bool TryParse(MemoryCursor cursor, out MemoryBuffer verifyData)
        {
            verifyData = new MemoryBuffer();

            if (!HandshakeType.TrySlice(cursor, HandshakeType.Finished))
            {
                return(false);
            }

            verifyData = HandshakeLength.SliceBytes(cursor);

            return(true);
        }