Skip to main content

Tor1Hsv3RelayCrypto

Type Alias Tor1Hsv3RelayCrypto 

Source
pub(crate) type Tor1Hsv3RelayCrypto = CryptStatePair<Aes256Ctr, Sha3_256>;
Expand description

Standard Tor relay crypto, as instantiated for the HSv3 protocol.

(The use of SHA3 is ridiculously overkill.)

Aliased Type§

pub(crate) struct Tor1Hsv3RelayCrypto {
    fwd: CryptState<Aes256Ctr, CoreWrapper<Sha3_256Core>>,
    back: CryptState<Aes256Ctr, CoreWrapper<Sha3_256Core>>,
    binding: CircuitBinding,
}

Fields§

§fwd: CryptState<Aes256Ctr, CoreWrapper<Sha3_256Core>>

State for en/decrypting cells sent away from the client.

§back: CryptState<Aes256Ctr, CoreWrapper<Sha3_256Core>>

State for en/decrypting cells sent towards the client.

§binding: CircuitBinding

A circuit binding key.