Shared secret we generated for a particular sender or receiver. More...
Data Fields | |
struct SharedSecret * | next |
Kept in a DLL. More... | |
struct SharedSecret * | prev |
Kept in a DLL. More... | |
struct KeyCacheEntry * | kce_head |
Kept in a DLL, sorted by sequence number. More... | |
struct KeyCacheEntry * | kce_tail |
Kept in a DLL, sorted by sequence number. More... | |
struct SenderAddress * | sender |
Sender we use this shared secret with, or NULL. More... | |
struct ReceiverAddress * | receiver |
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... | |
Shared secret we generated for a particular sender or receiver.
Definition at line 416 of file gnunet-communicator-udp.c.
struct SharedSecret* SharedSecret::next |
Kept in a DLL.
Definition at line 421 of file gnunet-communicator-udp.c.
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().
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().
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().
struct SenderAddress* SharedSecret::sender |
Sender we use this shared secret with, or NULL.
Definition at line 441 of file gnunet-communicator-udp.c.
Referenced by consider_ss_ack(), decrypt_box(), kce_generate(), kce_generate_cb(), reschedule_sender_timeout(), secret_destroy(), sender_destroy(), sock_read(), and try_handle_plaintext().
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().
struct GNUNET_ShortHashCode SharedSecret::master |
Master shared secret.
Definition at line 451 of file gnunet-communicator-udp.c.
Referenced by calculate_cmac(), consider_ss_ack(), create_rekey(), kce_generate(), kce_generate_cb(), mq_send_d(), secret_destroy(), send_msg_with_kx(), setup_initial_shared_secret_dec(), setup_initial_shared_secret_ephemeral(), setup_shared_secret_dec(), setup_shared_secret_ephemeral(), try_decrypt(), and try_handle_plaintext().
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().
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().
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().
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().
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().
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().
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().