+-----------------------------------------------------+ | Custom Protocol (C Code) | +-----------------------------------------------------+ | | | +---------------------+ +----------------+ | | | Compression | | Decompression | | | | Functions | | Functions | | | +---------------------+ +----------------+ | | | | | | | | | | | | +-----v---+ +------v---+ | | | | Send | | Receive | | | | | Command | | MP4 Data | | | | | Function| | Function | | | | +---------+ +----------+ | | | | | | | | | | | | | +-----v-------------------v---------v----+ | | | Main Protocol Handling | | | | (sw103k_proto_parse_pkt) | | | +------------------------------------------+ | | | | | | | | +-----v-------------------------------+ | | | merkelsw103k Tree | | | | Construction and Integrity | | | | Verification | | | +-----------------------------------+ | | | | | | | | +-----v----------------------------------+ | | | State Management | | | | and Custom Hash Calculations | | | +----------------------------------------+ | | | | | | | +--------v------------------------------------+ | | +--------v------------------------------------+ | File Handling | | (Sending and Receiving MP4 Data, File I/O) | +--------------------------------------------+ | | +--------v------------------------------------+ | Custom Hash Functions | | (Hash Calculation and Combination) | +--------------------------------------------+