|
Tor 0.4.9.8
|
Definitions for common sizes of cryptographic digests. More...
Go to the source code of this file.
Macros | |
| #define | DIGEST_LEN 20 |
| #define | DIGEST256_LEN 32 |
| #define | DIGEST512_LEN 64 |
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.
| #define DIGEST256_LEN 32 |
Length of the output of our second (improved) message digests. (For now this is just sha256, but it could be any other 256-bit digest.)
Definition at line 23 of file digest_sizes.h.
Referenced by build_blinded_key_param(), build_secret_input(), build_service_desc_superencrypted(), cdm_diff_eq(), cdm_diff_hash(), cdm_diff_ht_check_and_note_pending(), cdm_diff_ht_purge(), cdm_diff_ht_set_status(), cdm_diff_new(), cdm_entry_get_sha3_value(), cdm_labels_prepend_sha3(), circuit_describe_status_for_controller(), circuit_establish_circuit_conflux(), compare_digest_to_fetch_hsdir_index(), compare_digest_to_store_first_hsdir_index(), compare_digest_to_store_second_hsdir_index(), compare_digests256_(), compare_node_fetch_hsdir_index(), compare_node_store_first_hsdir_index(), compare_node_store_second_hsdir_index(), compute_disaster_srv(), compute_introduce_mac(), compute_routerstatus_consensus(), conflux_process_link(), consdiff_apply_diff(), consdiff_gen_diff(), consdiff_get_digests(), consdiffmgr_diffs_load(), consdiffmgr_find_diff_from(), consdiffmgr_rescan_flavor_(), consdiffmgr_validate(), consensus_diff_worker_replyfn(), consensus_digest_eq(), create_rp_circuit_identifier(), crypto_digest256(), crypto_digest_algorithm_get_length(), crypto_expand_key_material_rfc5869_sha256_legacy(), crypto_hmac_sha256(), crypto_pwbox(), crypto_unpwbox(), ddmap_entry_set_digests(), decrypt_desc_layer(), decrypt_descriptor_cookie(), digest256_from_base64(), digest256_to_base64(), digest256map_entries_eq(), digest256map_entry_hash(), digest_list_contains_best_consensus(), dir_consensus_request_set_additional_headers(), dir_split_resource_into_fingerprints(), dir_split_resource_into_spoolable(), dirserv_generate_networkstatus_vote_obj(), dirserv_read_measured_bandwidths(), dirserv_set_cached_consensus_networkstatus(), dirvote_format_all_microdesc_vote_lines(), dump_desc(), dump_desc_fifo_add_and_clean(), dump_desc_fifo_bump_hash(), dump_desc_populate_one_file(), encrypt_descriptor_data(), encrypted_data_length_is_valid(), extrainfo_dump_to_string_ed_sig_helper(), extrainfo_parse_entry_from_string(), find_best_diff(), generate_ed_link_cert(), generate_ope_cipher_for_desc(), generate_srv(), get_disaster_srv(), get_introduce1_key_material(), get_introduce2_keys_and_verify_mac(), get_rendezvous1_key_material(), handle_control_authchallenge(), handle_control_authenticate(), handle_get_networkstatus_bridges(), handle_rendezvous2(), hs_address_is_valid(), hs_build_address(), hs_build_blinded_keypair(), hs_build_blinded_pubkey(), hs_build_hs_index(), hs_build_hsdir_index(), hs_cell_parse_introduce2(), hs_control_desc_event_requested(), hs_control_desc_event_upload(), hs_desc_build_authorized_client(), hs_desc_decode_descriptor(), hs_get_current_srv(), hs_get_previous_srv(), hs_get_responsible_hsdirs(), hs_get_subcredential(), hs_ntor_circuit_key_expansion(), hs_ntor_client_rendezvous2_mac_is_good(), initiate_descriptor_downloads(), introduce1_encrypt_and_encode(), keypin_add_or_replace_entry_in_map(), keypin_parse_journal_line(), launch_new_set(), linked_circuit_closed(), microdesc_cache_clean(), microdesc_cache_lookup_by_digest256(), microdesc_eq_(), microdesc_list_missing_digest256(), microdescs_add_to_cache(), microdescs_parse_from_string(), networkstatus_add_detached_signatures(), networkstatus_check_document_signature(), networkstatus_compute_consensus(), networkstatus_copy_old_consensus_info(), networkstatus_get_detached_signatures(), networkstatus_parse_vote_from_string(), node_has_hsdir_index(), nodelist_set_consensus(), onion_ntor3_client_handshake(), onion_skin_ntor3_create_nokeygen(), onion_skin_ntor3_server_handshake_part1(), onion_skin_ntor3_server_handshake_part2_nokeygen(), onion_skin_ntor_client_handshake(), onion_skin_ntor_server_handshake(), options_act(), or_handshake_certs_ed25519_ok(), parse_consensus_request(), parse_one_diff_hash(), parse_or_diff_from_header(), replaycache_add_and_test_internal(), router_dump_router_to_string(), router_parse_entry_from_string(), router_update_routerinfo_from_extrainfo(), routerinfo_incompatible_with_extrainfo(), rsa_ed25519_crosscert_check(), secret_to_key_key_len(), should_make_new_ed_keys(), sr_compute_srv(), tor1_crypt_init(), tor_digest256_is_zero(), tor_make_rsa_ed25519_crosscert(), tor_tls_export_key_material(), unlinked_circuit_closed(), and verify_establish_intro_cell().
| #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_digest512(), crypto_digest_algorithm_get_length(), crypto_digest_get_digest(), and ed25519_keypair_from_curve25519_keypair().
| #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_rsa_fingerprint_to_dir(), authority_cert_dl_failed(), authority_cert_get_by_digests(), authority_cert_get_by_sk_digest(), authority_cert_parse_from_string(), authority_certs_fetch_missing(), bridge_add_from_config(), bridge_has_digest(), bridge_resolve_conflicts(), build_addr_port_item(), channel_add_to_digest_map(), channel_dump_statistics(), channel_find_by_remote_identity(), channel_get_for_extend(), channel_register(), channel_remote_identity_matches(), channel_remove_from_digest_map(), channel_set_identity_digest(), channel_tls_process_authenticate_cell(), channel_tls_process_certs_cell(), channel_tls_process_netinfo_cell(), channel_update_bad_for_new_circs(), channelpadding_send_padding_cell_for_callback(), channelpadding_update_padding_for_channel(), check_tap_onion_key_crosscert(), choose_good_middle_server(), circuit_find_to_cannibalize(), circuit_get_all_pending_on_channel(), circuit_get_open_circ_or_launch(), circuit_is_acceptable(), circuit_list_path_impl(), circuit_send_intermediate_onion_skin(), command_process_create_cell(), 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_routerinfo_usefulness(), compare_vote_rs(), compare_votes_by_authority_id_(), conflux_add_guards_to_exclude_list(), connection_ap_can_use_exit(), connection_ap_fail_onehop(), connection_ap_handshake_rewrite_and_attach(), connection_ap_make_link(), connection_describe_peer_internal(), connection_dir_retry_bridges(), connection_or_check_canonicity(), connection_or_clear_identity(), connection_or_client_learned_peer_id(), connection_or_init_conn_from_address(), connection_or_set_identity_digest(), consensus_queue_compression_work(), consider_recording_trackhost(), control_event_bootstrap_problem(), control_event_guard(), crypto_dh_compute_secret(), crypto_dh_handshake(), crypto_digest(), crypto_digest_algorithm_get_length(), crypto_expand_key_material_TAP(), crypto_pk_get_fingerprint(), crypto_pk_get_hashed_fingerprint(), crypto_pk_private_sign_digest(), crypto_pk_public_checksig_digest(), ddmap_entry_set_digests(), decode_hashed_passwords(), describe_intro_point(), digest_from_base64(), digest_list_to_string(), digest_to_base64(), digestmap_entries_eq(), digestmap_entry_hash(), dir_microdesc_download_failed(), dir_routerdesc_download_failed(), dir_server_new(), dir_split_resource_into_fingerprint_pairs(), dir_split_resource_into_fingerprints(), dir_split_resource_into_spoolable(), directory_initiate_request(), directory_request_set_directory_id_digest(), dirserv_add_descriptor(), dirserv_add_extrainfo(), dirserv_generate_networkstatus_vote_obj(), dirserv_get_routerdesc_spool(), dirserv_orconn_tls_done(), dirserv_router_get_status(), dirvote_act(), dirvote_add_vote(), dirvote_compute_consensuses(), dirvote_fetch_missing_votes(), dirvote_get_vote(), do_hash_password(), entry_guard_add_to_sample_impl(), entry_guard_describe(), entry_guard_encode_for_state(), entry_guard_learned_bridge_identity(), entry_guard_parse_from_state(), extend_cell_format(), extend_info_new(), extrainfo_dump_to_string_header_helper(), extrainfo_dump_to_string_rsa_sig_helper(), extrainfo_insert(), extrainfo_parse_entry_from_string(), fast_client_handshake(), fast_onionskin_create(), fast_server_handshake(), fetch_bridge_descriptors(), find_bridge_by_digest(), find_desc_intro_point_by_legacy_id(), 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(), geoip_load_file(), get_bridge_dl_status_by_id(), get_configured_bridge_by_addr_port_digest(), get_configured_bridge_by_exact_addr_port_digest(), get_configured_bridge_by_orports_digest(), get_my_declared_family(), get_sampled_guard_for_bridge(), get_sampled_guard_with_id(), getinfo_helper_dir(), getinfo_helper_downloads_bridge(), getinfo_helper_downloads_cert(), getinfo_helper_downloads_desc(), getinfo_helper_format_single_entry_guard(), getinfo_helper_networkstatus(), guard_obeys_md_dirserver_restriction(), guards_choose_guard(), handle_control_authenticate(), handle_response_fetch_microdesc(), hex_digest_nickname_decode(), hex_digest_nickname_matches(), hexdigest_to_digest(), hs_cell_build_establish_intro(), hs_get_extend_info_from_lspecs(), hs_intro_received_introduce1(), hs_lookup_last_hid_serv_request(), init_keys(), initiate_descriptor_downloads(), keypin_parse_journal_line(), learned_bridge_descriptor(), learned_router_identity(), list_authority_ids_with_downloads(), list_bridge_identities(), list_sk_digests_for_authority_id(), list_v3_auth_ids(), lookup_cached_dir_by_fp(), maintain_layer2_guards(), make_tap_onion_key_crosscert(), measured_bw_line_parse(), microdesc_cache_clean(), microdesc_note_outdated_dirserver(), microdesc_relay_is_outdated_dirserver(), networkstatus_add_detached_signatures(), networkstatus_check_consensus_signature(), networkstatus_check_document_signature(), networkstatus_compute_consensus(), networkstatus_copy_old_consensus_info(), networkstatus_format_signatures(), networkstatus_get_detached_signatures(), networkstatus_get_voter_by_id(), networkstatus_parse_detached_signatures(), networkstatus_parse_vote_from_string(), node_get_by_hex_id(), node_get_by_nickname(), node_get_mutable_by_id(), node_get_or_create(), node_get_verbose_nickname(), node_get_verbose_nickname_by_id(), node_is_a_configured_bridge(), nodefamily_contains_rsa_id(), nodefamily_format(), nodefamily_from_members(), nodelist_assert_ok(), notify_control_networkstatus_changed(), onion_skin_client_handshake(), onion_skin_ntor_client_handshake(), onion_skin_ntor_create(), onion_skin_ntor_server_handshake(), onion_skin_server_handshake(), onionskin_answer(), orconn_target_get_name(), parse_bridge_line(), parse_dir_authority_line(), parse_dir_fallback_line(), pathbias_count_circs_in_states(), rep_hist_dump_stats(), rep_hist_load_mtbf_data(), rep_hist_note_router_reachable(), rep_hist_note_router_unreachable(), rep_hist_record_mtbf_data(), router_add_to_routerlist(), router_build_fresh_unsigned_extrainfo(), router_digest_is_me(), router_digest_is_trusted_dir_type(), router_dump_router_to_string(), router_extrainfo_digest_is_me(), router_get_descriptor_digests_in_consensus(), router_get_fallback_dirserver_by_digest(), router_get_trusteddirserver_by_digest(), router_get_verbose_nickname(), router_load_extrainfo_from_string(), router_load_routers_from_string(), router_parse_entry_from_string(), router_parse_list_from_string(), router_set_status(), router_update_routerinfo_from_extrainfo(), routerinfo_incompatible_with_extrainfo(), routerlist_add_node_and_family(), routerlist_assert_ok(), routerlist_remove_old_cached_routers_with_id(), routerlist_remove_old_routers(), routerlist_replace(), routers_make_ed_keys_unique(), routers_update_status_from_consensus_networkstatus(), routerset_parse(), routerstatus_format_entry(), routerstatus_has_visibly_changed(), secret_to_key_get_type(), secret_to_key_key_len(), secret_to_key_rfc2440(), server_onion_keys_new(), set_routerstatus_from_routerinfo(), should_keep_commit(), signed_desc_digest_is_recognized(), signed_descs_update_status_from_consensus_networkstatus(), smartlist_contains_digest(), sr_generate_our_commit(), sr_handle_received_commits(), sr_parse_commit(), tor1_crypt_init(), tor1_relay_digest_matches_v0(), tor1_set_digest_v0(), tor_digest_is_zero(), tor_version_parse(), trusted_dirs_load_certs_from_string(), trusteddirserver_get_by_v3_auth_digest(), update_consensus_router_descriptor_downloads(), and update_extrainfo_downloads().