|
Tor 0.4.9.8
|
Definitions for sizes of x25519 keys and elements. More...
Go to the source code of this file.
Macros | |
| #define | CURVE25519_PUBKEY_LEN 32 |
| #define | CURVE25519_SECKEY_LEN 32 |
| #define | CURVE25519_OUTPUT_LEN 32 |
| #define | ED25519_PUBKEY_LEN 32 |
| #define | ED25519_SECKEY_LEN 64 |
| #define | ED25519_SECKEY_SEED_LEN 32 |
| #define | ED25519_SIG_LEN 64 |
| #define | CURVE25519_BASE64_PADDED_LEN 44 |
| #define | CURVE25519_BASE64_LEN 43 |
| #define | ED25519_BASE64_LEN 43 |
| #define | ED25519_SIG_BASE64_LEN 86 |
Definitions for sizes of x25519 keys and elements.
Tor uses these definitions throughout its codebase, even in parts that don't actually do any x25519 calculations.
Definition in file x25519_sizes.h.
| #define CURVE25519_BASE64_LEN 43 |
Length of a Curve25519 key when encoded in base 64, without padding.
Definition at line 40 of file x25519_sizes.h.
Referenced by curve25519_public_from_base64(), and curve25519_public_to_base64().
| #define CURVE25519_BASE64_PADDED_LEN 44 |
Length of a Curve25519 key when encoded in base 64, with padding.
Definition at line 37 of file x25519_sizes.h.
Referenced by curve25519_public_from_base64(), curve25519_public_to_base64(), dirvote_create_microdescriptor(), encode_enc_key(), encode_onion_key(), get_outer_encrypted_layer_plaintext(), and router_dump_router_to_string().
| #define CURVE25519_OUTPUT_LEN 32 |
Length of the result of a curve25519 handshake.
Definition at line 24 of file x25519_sizes.h.
Referenced by build_descriptor_cookie_keys(), get_intro_secret_hs_input(), get_rend_secret_hs_input(), hs_ntor_service_get_introduce1_keys_multi(), 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(), and onion_skin_ntor_server_handshake().
| #define CURVE25519_PUBKEY_LEN 32 |
Length of a curve25519 public key when encoded.
Definition at line 20 of file x25519_sizes.h.
Referenced by construct_ntor_key_map(), create_rp_circuit_identifier(), curve25519_impl(), curve25519_keypair_read_from_file(), curve25519_keypair_write_to_file(), curve25519_public_from_base64(), curve25519_public_key_is_ok(), curve25519_public_to_base64(), decrypt_introduce2(), get_intro_secret_hs_input(), get_introduce2_key_material(), get_outer_encrypted_layer_plaintext(), get_rend_secret_hs_input(), get_rendezvous1_key_material(), handle_rendezvous2(), hs_cell_parse_introduce2(), init_keys(), introduce1_set_encrypted_onion_key(), microdesc_has_curve25519_onion_key(), 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_create(), onion_skin_ntor_server_handshake(), parse_authorized_client_key(), parse_introduce2_encrypted(), service_authorized_client_cmp(), service_authorized_client_dup(), and store_permanent_client_auth_credentials().
| #define CURVE25519_SECKEY_LEN 32 |
Length of a curve25519 secret key when encoded.
Definition at line 22 of file x25519_sizes.h.
Referenced by curve25519_keypair_read_from_file(), curve25519_keypair_write_to_file(), curve25519_rand_seckey_bytes(), and parse_auth_file_content().
| #define ED25519_BASE64_LEN 43 |
Length of a Ed25519 key when encoded in base 64, without padding.
Definition at line 43 of file x25519_sizes.h.
Referenced by check_one_family_cert(), connection_describe_peer_internal(), connection_or_client_learned_peer_id(), directory_launch_v3_desc_fetch(), directory_send_command(), dirvote_create_microdescriptor(), do_list_fingerprint(), ed25519_fmt(), format_node_description(), handle_introduce1(), hs_control_desc_event_content(), hs_control_desc_event_created(), hs_control_desc_event_failed(), hs_control_desc_event_received(), hs_control_desc_event_upload(), pick_hsdir_v3(), purge_hid_serv_request(), and router_dump_router_to_string().
| #define ED25519_PUBKEY_LEN 32 |
Length of an Ed25519 public key
Definition at line 27 of file x25519_sizes.h.
Referenced by build_blinded_key_param(), build_hs_address(), build_hs_checksum(), build_secret_data(), build_service_desc_keys(), channel_remote_identity_matches(), check_tap_onion_key_crosscert(), connection_or_compute_authenticate_cell_body(), dirserv_generate_networkstatus_vote_obj(), dirserv_would_reject_router(), ed25519_impl_spot_check(), ed25519_pubkey_eq(), ed25519_public_key_is_zero(), ed_key_init_from_file(), encode_superencrypted_data(), get_intro_secret_hs_input(), get_rend_secret_hs_input(), get_rendezvous1_key_material(), hs_build_blinded_keypair(), hs_build_blinded_pubkey(), hs_build_hs_index(), hs_build_hsdir_index(), hs_cell_build_establish_intro(), hs_circuitmap_get_intro_circ_v3_relay_side(), hs_circuitmap_get_intro_circ_v3_service_side(), hs_circuitmap_register_intro_circ_v3_relay_side(), hs_circuitmap_register_intro_circ_v3_service_side(), hs_get_extend_info_from_lspecs(), hs_get_subcredential(), hs_parse_address_impl(), introduce1_set_auth_key(), make_tap_onion_key_crosscert(), networkstatus_compute_consensus(), onion_ntor3_client_handshake(), onion_skin_ntor3_create_nokeygen(), onion_skin_ntor3_server_handshake_part1(), onion_skin_ntor3_server_handshake_part2_nokeygen(), router_parse_entry_from_string(), routerstatus_format_entry(), rsa_ed25519_crosscert_check(), tor_make_rsa_ed25519_crosscert(), validate_introduce1_parsed_cell(), and verify_establish_intro_cell().
| #define ED25519_SECKEY_LEN 64 |
Length of an Ed25519 secret key
Definition at line 29 of file x25519_sizes.h.
Referenced by ed25519_impl_spot_check(), hs_build_blinded_keypair(), and load_ed_keys().
| #define ED25519_SECKEY_SEED_LEN 32 |
Length of the seed that is ordinarily expanded to an Ed25519 secret key.
Definition at line 32 of file x25519_sizes.h.
| #define ED25519_SIG_BASE64_LEN 86 |
Length of a Ed25519 signature when encoded in base 64, without padding.
Definition at line 45 of file x25519_sizes.h.
Referenced by desc_encode_v3(), desc_sig_is_valid(), ed25519_signature_from_base64(), ed25519_signature_to_base64(), extrainfo_dump_to_string_ed_sig_helper(), and router_dump_router_to_string().
| #define ED25519_SIG_LEN 64 |
Length of an Ed25519 signature.
Definition at line 34 of file x25519_sizes.h.
Referenced by channel_tls_process_authenticate_cell(), connection_or_compute_authenticate_cell_body(), ed25519_impl_spot_check(), ed25519_signature_from_base64(), ed25519_signature_to_base64(), hs_cell_build_establish_intro(), tor_cert_create_raw(), and tor_cert_get_checkable_sig().