Shared secret we generated for a particular sender or receiver. More...
Data Fields | |
struct SharedSecret * | next |
Kept in a DLL. | |
struct SharedSecret * | prev |
Kept in a DLL. | |
struct KeyCacheEntry * | kce_head |
Kept in a DLL, sorted by sequence number. | |
struct KeyCacheEntry * | kce_tail |
Kept in a DLL, sorted by sequence number. | |
struct SenderAddress * | sender |
Sender we use this shared secret with, or NULL. | |
struct ReceiverAddress * | receiver |
Receiver we use this shared secret with, or NULL. | |
struct GNUNET_ShortHashCode | master |
Master shared secret. | |
struct GNUNET_HashCode | cmac |
CMAC is used to identify master in ACKs. | |
uint32_t | sequence_used |
Up to which sequence number did we use this master already? (for encrypting only) | |
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? | |
unsigned int | active_kce_count |
Number of active KCN entries. | |
size_t | bytes_sent |
Bytes sent with this shared secret. | |
int | rekey_initiated |
rekey initiated for this secret? | |
int | override_available_acks |
Also precompute keys despite sufficient acks (for rekey) | |
Shared secret we generated for a particular sender or receiver.
Definition at line 420 of file gnunet-communicator-udp.c.
struct SharedSecret* SharedSecret::next |
Kept in a DLL.
Definition at line 425 of file gnunet-communicator-udp.c.
struct SharedSecret* SharedSecret::prev |
Kept in a DLL.
Definition at line 430 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 435 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 440 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 445 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 450 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 455 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 460 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 466 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 473 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 478 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 483 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 488 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 493 of file gnunet-communicator-udp.c.
Referenced by kce_generate_cb(), and try_handle_plaintext().