tor  0.4.0.1-alpha
Macros
digest_sizes.h File Reference

Go to the source code of this file.

Macros

#define DIGEST_LEN   20
 
#define DIGEST256_LEN   32
 
#define DIGEST512_LEN   64
 

Detailed Description

Definitions for common sizes of cryptographic digests.

Tor uses digests throughout its codebase, even in parts that don't actually calculate the digests.

Definition in file digest_sizes.h.

Macro Definition Documentation

◆ DIGEST256_LEN

#define DIGEST256_LEN   32

◆ DIGEST512_LEN

#define DIGEST512_LEN   64

Length of the output of our 64-bit optimized message digests (SHA512).

Definition at line 25 of file digest_sizes.h.

Referenced by crypto_digest_get_digest(), and ed25519_keypair_from_curve25519_keypair().

◆ DIGEST_LEN

#define DIGEST_LEN   20

Length of the output of our message digest.

Definition at line 20 of file digest_sizes.h.

Referenced by accounting_set_wakeup_time(), add_fingerprint_to_dir(), authority_cert_get_by_digests(), authority_cert_get_by_sk_digest(), authority_cert_parse_from_string(), bridge_has_digest(), bridge_resolve_conflicts(), channel_get_for_extend(), compare_digest_to_routerstatus_entry(), compare_digest_to_vote_routerstatus_entry(), compare_digests_(), compare_dir_src_ents_by_authority_id_(), compare_old_routers_by_identity_(), compare_pairs_(), compare_routerinfo_by_id_digest_(), compare_vote_rs(), compare_votes_by_authority_id_(), connection_ap_fail_onehop(), connection_or_clear_identity(), connection_tls_finish_handshake(), consider_recording_trackhost(), crypto_dh_compute_secret(), crypto_dh_handshake(), crypto_pk_get_fingerprint(), crypto_pk_get_hashed_fingerprint(), crypto_pk_private_sign_digest(), ddmap_entry_set_digests(), decode_hashed_passwords(), digest_from_base64(), digest_to_base64(), digestmap_entries_eq(), digestmap_entry_hash(), directory_request_set_directory_id_digest(), dirserv_generate_networkstatus_vote_obj(), dirserv_router_get_status(), do_hash_password(), entry_guard_describe(), entry_guard_learned_bridge_identity(), fast_client_handshake(), fast_server_handshake(), fetch_v2_desc_by_addr(), find_bridge_by_digest(), find_intro_circuit(), format_networkstatus_vote(), format_node_description(), fp_pair_map_entry_hash(), fp_pair_map_get_by_digests(), fp_pair_map_set_by_digests(), geoip_db_digest(), get_sampled_guard_with_id(), get_secret_id_part_bytes(), getinfo_helper_downloads_bridge(), getinfo_helper_downloads_cert(), getinfo_helper_downloads_desc(), handle_control_hsfetch(), hex_digest_nickname_matches(), hexdigest_to_digest(), hs_lookup_last_hid_serv_request(), init_keys(), learned_bridge_descriptor(), learned_router_identity(), lookup_cached_dir_by_fp(), make_tap_onion_key_crosscert(), microdesc_relay_is_outdated_dirserver(), MOCK_IMPL(), networkstatus_check_consensus_signature(), networkstatus_check_document_signature(), node_get_by_hex_id(), node_get_verbose_nickname(), node_get_verbose_nickname_by_id(), onion_skin_TAP_client_handshake(), parse_dir_authority_line(), parse_dir_fallback_line(), purge_v2_hidserv_req(), rend_cache_clean_v2_descs_as_dir(), rend_cache_lookup_v2_desc_as_dir(), rend_cache_store_v2_desc_as_client(), rend_cache_store_v2_desc_as_dir(), rend_cache_store_v2_desc_as_service(), rend_client_receive_rendezvous(), rend_compute_v2_desc_id(), rend_desc_v2_is_parsable(), rend_encode_v2_descriptors(), rend_get_descriptor_id_bytes(), rend_get_service_id(), rend_mid_establish_intro_legacy(), rend_service_decrypt_intro(), rend_service_get_by_pk_digest(), rend_service_parse_intro_for_v2(), rep_hist_dump_stats(), rep_hist_stored_maybe_new_hs(), router_digest_is_me(), router_extrainfo_digest_is_me(), router_get_fallback_dirserver_by_digest(), router_get_trusteddirserver_by_digest(), router_get_verbose_nickname(), router_parse_list_from_string(), routerinfo_incompatible_with_extrainfo(), routerlist_add_node_and_family(), routers_make_ed_keys_unique(), routerstatus_has_changed(), secret_to_key_rfc2440(), signed_descs_update_status_from_consensus_networkstatus(), smartlist_contains_digest(), and tor_digest_is_zero().