Struct tor_netdoc::doc::hsdesc::EncryptedHsDesc
source · pub struct EncryptedHsDesc { /* private fields */ }Available on crate feature
onion-common only.Expand description
An onion service after it has been parsed by the client, but not yet decrypted.
Implementations§
source§impl EncryptedHsDesc
impl EncryptedHsDesc
sourcepub fn decrypt(
self,
using_key: Option<(&ClientDescAuthKey, &ClientDescAuthSecretKey)>
) -> Result<UncheckedHsDesc>
pub fn decrypt(
self,
using_key: Option<(&ClientDescAuthKey, &ClientDescAuthSecretKey)>
) -> Result<UncheckedHsDesc>
Attempt to decrypt both layers of encryption in this onion service descriptor.
If using_key is provided, we use it to decrypt the inner layer;
otherwise, we require that the inner layer is encrypted using the “no
client authorization” method.