GNUnet 0.22.2
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_ShortHashCode 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...
 
size_t bytes_sent
 Bytes sent with this shared secret. More...
 
int rekey_initiated
 rekey initiated for this secret? More...
 
int override_available_acks
 Also precompute keys despite sufficient acks (for rekey) More...
 

Detailed Description

Shared secret we generated for a particular sender or receiver.

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

Field Documentation

◆ next

struct SharedSecret* SharedSecret::next

Kept in a DLL.

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

◆ prev

struct SharedSecret* SharedSecret::prev

Kept in a DLL.

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

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

◆ kce_head

struct KeyCacheEntry* SharedSecret::kce_head

Kept in a DLL, sorted by sequence number.

Only if we are decrypting.

Definition at line 431 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 436 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 446 of file gnunet-communicator-udp.c.

Referenced by add_acks(), secret_destroy(), setup_initial_shared_secret_ephemeral(), and setup_shared_secret_ephemeral().

◆ master

◆ cmac

struct GNUNET_HashCode SharedSecret::cmac

CMAC is used to identify master in ACKs.

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

Referenced by calculate_cmac(), consider_ss_ack(), create_rekey(), and try_handle_plaintext().

◆ sequence_used

uint32_t SharedSecret::sequence_used

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

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

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

◆ 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 469 of file gnunet-communicator-udp.c.

Referenced by consider_ss_ack(), create_rekey(), kce_generate_cb(), mq_send_d(), secret_destroy(), and try_handle_plaintext().

◆ active_kce_count

unsigned int SharedSecret::active_kce_count

Number of active KCN entries.

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

Referenced by kce_destroy(), and kce_generate().

◆ bytes_sent

size_t SharedSecret::bytes_sent

Bytes sent with this shared secret.

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

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

◆ rekey_initiated

int SharedSecret::rekey_initiated

rekey initiated for this secret?

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

Referenced by create_rekey(), and mq_send_d().

◆ override_available_acks

int SharedSecret::override_available_acks

Also precompute keys despite sufficient acks (for rekey)

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

Referenced by kce_generate_cb(), and try_handle_plaintext().


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