GNUnet 0.22.2
UDPBox Struct Reference

UDP message box. More...

Collaboration diagram for UDPBox:
[legend]

Data Fields

struct GNUNET_ShortHashCode kid
 Key and IV identification code. More...
 
uint8_t gcm_tag [(128/8)]
 128-bit authentication tag for the following encrypted message, from GCM. More...
 

Detailed Description

UDP message box.

Always sent encrypted, only allowed after the receiver sent a struct UDPAck for the base key!

Definition at line 318 of file gnunet-communicator-udp.c.

Field Documentation

◆ kid

struct GNUNET_ShortHashCode UDPBox::kid

Key and IV identification code.

KDF applied to an acknowledged base key and a sequence number. Sequence numbers must be used monotonically increasing up to the maximum specified in struct UDPAck. Without further struct UDPAcks, the sender must fall back to sending handshakes!

Definition at line 327 of file gnunet-communicator-udp.c.

Referenced by decrypt_box(), mq_send_d(), and sock_read().

◆ gcm_tag

uint8_t UDPBox::gcm_tag[(128/8)]

128-bit authentication tag for the following encrypted message, from GCM.

MAC starts at the body_start that follows and extends until the end of the UDP payload. If the hmac is wrong, the receiver should check if the message might be a struct UdpHandshakeSignature.

Definition at line 336 of file gnunet-communicator-udp.c.

Referenced by decrypt_box(), and mq_send_d().


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