|
Tor 0.4.9.3-alpha-dev
|
#include <shared_random.h>
Data Fields | |
| digest_algorithm_t | alg |
| unsigned int | valid:1 |
| char | rsa_identity [DIGEST_LEN] |
| char | rsa_identity_hex [HEX_DIGEST_LEN+1] |
| uint64_t | reveal_ts |
| char | hashed_reveal [DIGEST256_LEN] |
| char | encoded_commit [SR_COMMIT_BASE64_LEN+1] |
| uint8_t | random_number [SR_RANDOM_NUMBER_LEN] |
| uint64_t | commit_ts |
| char | encoded_reveal [SR_REVEAL_BASE64_LEN+1] |
A commit (either ours or from another authority).
Definition at line 70 of file shared_random.h.
Hashing algorithm used.
Definition at line 72 of file shared_random.h.
Referenced by commit_new(), disk_state_put_commit_line(), get_vote_line_from_commit(), sr_generate_our_commit(), and verify_commit_and_reveal().
| uint64_t commit_ts |
Timestamp of commit. Correspond to TIMESTAMP.
Definition at line 99 of file shared_random.h.
Referenced by commit_decode(), commit_encode(), commit_log(), sr_generate_our_commit(), and verify_commit_and_reveal().
| char encoded_commit[SR_COMMIT_BASE64_LEN+1] |
Definition at line 90 of file shared_random.h.
| char encoded_reveal[SR_REVEAL_BASE64_LEN+1] |
This is the whole reveal message. We use it during verification
Definition at line 101 of file shared_random.h.
Referenced by commit_has_reveal_value(), commit_log(), disk_state_put_commit_line(), get_srv_element_from_commit(), get_vote_line_from_commit(), reveal_decode(), sr_generate_our_commit(), sr_state_copy_reveal_info(), and verify_commit_and_reveal().
| char hashed_reveal[DIGEST256_LEN] |
Definition at line 88 of file shared_random.h.
| uint8_t random_number[SR_RANDOM_NUMBER_LEN] |
H(RN) which is what we used as the random value for this commit. We don't use the raw bytes since those are sent on the network thus avoiding possible information leaks of our PRNG.
Definition at line 97 of file shared_random.h.
Referenced by reveal_decode(), reveal_encode(), sr_commit_free_(), sr_generate_our_commit(), and sr_state_copy_reveal_info().
| uint64_t reveal_ts |
Timestamp of reveal. Correspond to TIMESTAMP.
Definition at line 86 of file shared_random.h.
Referenced by commit_log(), reveal_decode(), reveal_encode(), sr_generate_our_commit(), sr_state_copy_reveal_info(), and verify_commit_and_reveal().
| char rsa_identity[DIGEST_LEN] |
The RSA identity key of the authority and its base16 representation, which includes the NUL terminated byte.
Definition at line 80 of file shared_random.h.
Referenced by commit_add_to_state(), commit_is_authoritative(), commit_new(), save_commit_during_reveal_phase(), and should_keep_commit().
| char rsa_identity_hex[HEX_DIGEST_LEN+1] |
Definition at line 81 of file shared_random.h.
| unsigned int valid |
Indicate if this commit has been verified thus valid.
Definition at line 74 of file shared_random.h.
Referenced by disk_state_parse_commits(), and sr_generate_our_commit().