GNUnet  0.18.1
TCPFinish Struct Reference

TCP finish. More...

Collaboration diagram for TCPFinish:

Data Fields

struct GNUNET_MessageHeader header
struct GNUNET_ShortHashCode hmac
 HMAC for the following encrypted message. More...

Detailed Description

TCP finish.

Sender asks for the connection to be closed. Needed/useful in case we drop RST/FIN packets on the GNUnet port due to the possibility of malicious RST/FIN injection.

Definition at line 349 of file gnunet-communicator-tcp.c.

Field Documentation

◆ header

struct GNUNET_MessageHeader TCPFinish::header

◆ hmac

struct GNUNET_ShortHashCode TCPFinish::hmac

HMAC for the following encrypted message.

Yes, we MUST use mac-then-encrypt here, as we want to hide the message sizes on the wire (zero plaintext design!). Using CTR mode padding oracle attacks do not apply. Besides, due to the use of ephemeral keys (hopefully with effective replay protection from monotonic time!) the attacker is limited in using the oracle.

Definition at line 3663 of file gnunet-communicator-tcp.c.

Referenced by queue_finish(), and try_handle_plaintext().

The documentation for this struct was generated from the following file: