Tor  0.4.7.0-alpha-dev
Data Fields
hs_desc_plaintext_data_t Struct Reference

#include <hs_descriptor.h>

Data Fields

uint32_t version
 
uint32_t lifetime_sec
 
tor_cert_tsigning_key_cert
 
ed25519_public_key_t signing_pubkey
 
ed25519_public_key_t blinded_pubkey
 
uint64_t revision_counter
 
uint8_t * superencrypted_blob
 
size_t superencrypted_blob_size
 

Detailed Description

Plaintext data that is unencrypted information of the descriptor.

Definition at line 193 of file hs_descriptor.h.

Field Documentation

◆ blinded_pubkey

ed25519_public_key_t blinded_pubkey

Blinded public key used for this descriptor derived from the master identity key and generated for a specific replica number.

Definition at line 211 of file hs_descriptor.h.

Referenced by build_service_desc_plaintext(), decrypt_desc_layer(), and encode_superencrypted_data().

◆ lifetime_sec

uint32_t lifetime_sec

The lifetime of the descriptor in seconds.

Definition at line 199 of file hs_descriptor.h.

Referenced by build_service_desc_plaintext().

◆ revision_counter

uint64_t revision_counter

Revision counter is incremented at each upload, regardless of whether the descriptor has changed. This avoids leaking whether the descriptor has changed. Spec specifies this as a 8 bytes positive integer.

Definition at line 216 of file hs_descriptor.h.

Referenced by cache_store_v3_as_dir().

◆ signing_key_cert

tor_cert_t* signing_key_cert

Certificate with the short-term ed22519 descriptor signing key for the replica which is signed by the blinded public key for that replica.

Definition at line 203 of file hs_descriptor.h.

Referenced by desc_encode_v3(), and hs_desc_plaintext_obj_size().

◆ signing_pubkey

ed25519_public_key_t signing_pubkey

Signing public key which is used to sign the descriptor. Same public key as in the signing key certificate.

Definition at line 207 of file hs_descriptor.h.

Referenced by build_service_desc_plaintext().

◆ superencrypted_blob

uint8_t* superencrypted_blob

Decoding only: The b64-decoded superencrypted blob from the descriptor

Definition at line 219 of file hs_descriptor.h.

Referenced by decrypt_desc_layer(), and hs_desc_plaintext_data_free_contents().

◆ superencrypted_blob_size

size_t superencrypted_blob_size

Decoding only: Size of the superencrypted_blob

Definition at line 222 of file hs_descriptor.h.

Referenced by decrypt_desc_layer(), and hs_desc_plaintext_obj_size().

◆ version

uint32_t version

Version of the descriptor format. Spec specifies this field as a positive integer.

Definition at line 196 of file hs_descriptor.h.

Referenced by build_service_desc_plaintext(), client_get_random_intro(), desc_decode_plaintext_v3(), desc_encode_v3(), hs_cache_store_as_dir(), and hs_desc_encode_descriptor().


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