Skip to main content

kdf_msgkdf

Function kdf_msgkdf 

Source
fn kdf_msgkdf(
    xb: &SharedSecret,
    relay_public: &NtorV3PublicKey,
    client_public: &PublicKey,
    verification: &[u8],
) -> EncodeResult<(Zeroizing<[u8; 32]>, DigestWriter<Sha3_256>)>
Expand description

Helper: compute the encryption key and mac_key for the client’s encrypted message.

Takes as inputs xb (the shared secret derived from diffie-hellman as Bx or Xb), the relay’s public key information, the client’s public key (B), and the shared verification string.