def _parse_handshake_messages(data):

    pointer = 0
    data_len = len(data)
    while pointer < data_len:
        length = int_from_bytes(data[pointer + 1:pointer + 4])
        yield (
            data[pointer:pointer + 1],
            data[pointer + 4:pointer + 4 + length]
        )
        pointer += 4 + length
Creates a generator returning tuples of information about each message in
dataset/ETHPy150Open wbond/oscrypto/oscrypto/_tls.py/_parse_handshake_messages