Expand description
Key type wrappers of various kinds used in onion services.
(We define wrappers here as a safety net against confusing one kind of key for another: without a system like this, it can get pretty hard making sure that each key is used only in the right way.)
Re-exportsΒ§
use std::fmt;πuse std::fmt::Debug;πuse std::fmt::Debug;πuse std::fmt::Display;πuse std::str::FromStr;πuse derive_deftly::Deftly;πuse digest::Digest;πuse itertools::Itertools;πuse itertools::chain;πuse itertools::chain;πuse safelog::DisplayRedacted;πuse safelog::util::write_end_redacted;πuse subtle::ConstantTimeEq;πuse thiserror::Error;πuse tor_basic_utils::StrExt as _;πuse tor_basic_utils::impl_debug_hex;πuse tor_key_forge::ToEncodableKey;πuse tor_llcrypto::d::Sha3_256;πuse tor_llcrypto::pk::ed25519::Ed25519PublicKey;πuse tor_llcrypto::pk::ed25519::Ed25519SigningKey;πuse tor_llcrypto::pk::curve25519;πuse tor_llcrypto::pk::ed25519;πuse tor_llcrypto::pk::keymanip;πuse tor_llcrypto::util::ct::CtByteArray;πuse tor_llcrypto::derive_deftly_template_ConstantTimeEq;πuse tor_llcrypto::derive_deftly_template_PartialEqFromCtEq;πuse crate::macros::define_bytes;πuse crate::macros::define_pk_keypair;πuse crate::time::TimePeriod;πpub use hs_client_intro_auth::HsClientIntroAuthKey;Deprecated pub use hs_client_intro_auth::HsClientIntroAuthKeypair;Deprecated
ModulesΒ§
- hs_
client_ πintro_ auth - Key type wrappers for the deprecated
HsClientIntroKey/HsClientIntroKeypairtypes.
StructsΒ§
- HsBlind
Id - A blinded onion service identity, represented in a compact format. (
KP_hs_blind_id) - HsBlind
IdKey - The βblindedβ identity of a v3 onion service. (
KP_hs_blind_id) - HsBlind
IdKeypair - The private counterpart of a
HsBlindIdKey. - HsClient
Desc EncKey - Client service discovery key, used for onion descriptor
decryption. (
KP_hsc_desc_enc) - HsClient
Desc EncKeypair - A pair of a public and private components for a
HsClientDescEncKey. - HsClient
Desc EncSecret Key - The private counterpart of a
HsClientDescEncKey. - HsDesc
Signing Key - A key used to sign onion service descriptors. (
KP_desc_sign) - HsDesc
Signing Keypair - The private counterpart of a
HsDescSigningKey. - HsId
- The identity of a v3 onion service. (
KP_hs_id) - HsIdKey
- The identity of a v3 onion service, expanded into a public key. (
KP_hs_id) - HsId
Keypair - The private counterpart of a
HsIdKey. - HsIntro
PtSession IdKey - A key used to identify and authenticate an onion service at a single
introduction point. (
KP_hs_ipt_sid) - HsIntro
PtSession IdKeypair - The private counterpart of a
HsIntroPtSessionIdKey. - HsSvc
Desc EncKey - Server key, used for diffie hellman during onion descriptor decryption.
(
KP_hss_desc_enc) - HsSvc
Desc EncKeypair - An ephemeral x25519 keypair, generated by an onion service and used to for onion service encryption.
- HsSvc
Desc EncSecret Key - The private counterpart of a
HsSvcDescEncKey. - HsSvc
Ntor Key - A key used in the HsNtor handshake between the client and the onion service.
(
KP_hss_ntor) - HsSvc
Ntor Keypair - A pair of a public and private components for a
HsSvcNtorKey. - HsSvc
Ntor Secret Key - The private counterpart of a
HsSvcNtorKey.
EnumsΒ§
- HsClient
Desc EncKey Parse Error - Error that can occur parsing an
HsClientDescEncKeyfrom C Tor format. - HsId
Parse Error - Error that can occur parsing an
HsIdfrom a v3.oniondomain name
ConstantsΒ§
- HSID_
ONION_ SUFFIX - The fixed string
.onion - HSID_
ONION_ πVERSION - VERSION from rend-spec-v3 s.6 [ONIONADDRESS]