GNUnet  0.18.1
SharedSecret Struct Reference

Shared secret we generated for a particular sender or receiver. More...

Collaboration diagram for SharedSecret:
[legend]

Data Fields

struct SharedSecretnext
 Kept in a DLL. More...
 
struct SharedSecretprev
 Kept in a DLL. More...
 
struct KeyCacheEntrykce_head
 Kept in a DLL, sorted by sequence number. More...
 
struct KeyCacheEntrykce_tail
 Kept in a DLL, sorted by sequence number. More...
 
struct SenderAddresssender
 Sender we use this shared secret with, or NULL. More...
 
struct ReceiverAddressreceiver
 Receiver we use this shared secret with, or NULL. More...
 
struct GNUNET_HashCode master
 Master shared secret. More...
 
struct GNUNET_HashCode cmac
 CMAC is used to identify master in ACKs. More...
 
uint32_t sequence_used
 Up to which sequence number did we use this master already? (for encrypting only) More...
 
uint32_t sequence_allowed
 Up to which sequence number did the other peer allow us to use this key, or up to which number did we allow the other peer to use this key? More...
 
unsigned int active_kce_count
 Number of active KCN entries. More...
 

Detailed Description

Shared secret we generated for a particular sender or receiver.

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

Field Documentation

◆ next

struct SharedSecret* SharedSecret::next

Kept in a DLL.

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

Referenced by destroy_all_secrets().

◆ prev

struct SharedSecret* SharedSecret::prev

Kept in a DLL.

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

Referenced by send_UDPRekey().

◆ kce_head

struct KeyCacheEntry* SharedSecret::kce_head

Kept in a DLL, sorted by sequence number.

Only if we are decrypting.

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

Referenced by consider_ss_ack(), kce_destroy(), kce_generate(), and secret_destroy().

◆ kce_tail

struct KeyCacheEntry* SharedSecret::kce_tail

Kept in a DLL, sorted by sequence number.

Only if we are decrypting.

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

Referenced by consider_ss_ack(), kce_destroy(), and kce_generate().

◆ sender

struct SenderAddress* SharedSecret::sender

◆ receiver

struct ReceiverAddress* SharedSecret::receiver

Receiver we use this shared secret with, or NULL.

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

Referenced by add_acks(), destroy_all_secrets(), secret_destroy(), and setup_shared_secret_enc().

◆ master

◆ cmac

struct GNUNET_HashCode SharedSecret::cmac

CMAC is used to identify master in ACKs.

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

Referenced by calculate_cmac(), consider_ss_ack(), and decrypt_rekey().

◆ sequence_used

uint32_t SharedSecret::sequence_used

Up to which sequence number did we use this master already? (for encrypting only)

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

Referenced by secret_destroy(), and send_UDPRekey().

◆ sequence_allowed

uint32_t SharedSecret::sequence_allowed

Up to which sequence number did the other peer allow us to use this key, or up to which number did we allow the other peer to use this key?

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

Referenced by consider_ss_ack(), decrypt_rekey(), kce_generate_cb(), kce_generate_rekey_cb(), secret_destroy(), and send_UDPRekey().

◆ active_kce_count

unsigned int SharedSecret::active_kce_count

Number of active KCN entries.

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

Referenced by kce_destroy(), and kce_generate().


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