fn on_handshake(context: &mut Context, handshake: HandshakePacket) -> Status
Expand description

Handle the handshake packet.

This function is responsible for handling the handshake packet received from the sender. It performs the necessary verification and establishes the shared key between the sender and receiver.

§Arguments

  • context - The receiver context.
  • handshake - The handshake packet received from the sender.

§Returns

A Status representing the result of the operation.