GNUnet  0.18.1
UDPBox Struct Reference

UDP message box. More...

Collaboration diagram for UDPBox:
[legend]

Data Fields

struct GNUNET_ShortHashCode kid
 Key and IV identification code. More...
 
char gcm_tag [(128/8)]
 128-bit authentication tag for the following encrypted message, from GCM. More...
 
int rekeying
 A flag indicating, if the sender is doing rekeying. 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 328 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 267 of file gnunet-communicator-udp.c.

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

◆ gcm_tag

char 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 346 of file gnunet-communicator-udp.c.

Referenced by decrypt_box(), and mq_send_d().

◆ rekeying

int UDPBox::rekeying

A flag indicating, if the sender is doing rekeying.

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

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


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