Tor 0.4.9.0-alpha-dev
Data Fields
sr_commit_t Struct Reference

#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]
 

Detailed Description

A commit (either ours or from another authority).

Definition at line 70 of file shared_random.h.

Field Documentation

◆ alg

Hashing algorithm used.

Definition at line 72 of file shared_random.h.

Referenced by disk_state_put_commit_line().

◆ commit_ts

uint64_t commit_ts

Timestamp of commit. Correspond to TIMESTAMP.

Definition at line 99 of file shared_random.h.

Referenced by commit_encode(), and sr_generate_our_commit().

◆ encoded_commit

char encoded_commit[SR_COMMIT_BASE64_LEN+1]

Definition at line 90 of file shared_random.h.

◆ encoded_reveal

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(), disk_state_put_commit_line(), and sr_generate_our_commit().

◆ hashed_reveal

char hashed_reveal[DIGEST256_LEN]

Definition at line 88 of file shared_random.h.

◆ random_number

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_encode(), sr_commit_free_(), sr_generate_our_commit(), and sr_state_copy_reveal_info().

◆ reveal_ts

uint64_t reveal_ts

Timestamp of reveal. Correspond to TIMESTAMP.

Definition at line 86 of file shared_random.h.

Referenced by reveal_encode(), sr_generate_our_commit(), and sr_state_copy_reveal_info().

◆ rsa_identity

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(), and save_commit_during_reveal_phase().

◆ rsa_identity_hex

char rsa_identity_hex[HEX_DIGEST_LEN+1]

Definition at line 81 of file shared_random.h.

◆ valid

unsigned int valid

Indicate if this commit has been verified thus valid.

Definition at line 74 of file shared_random.h.


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