pub fn server_receive_intro<R>(
rng: &mut R,
k_hss_ntor: &HsSvcNtorKeypair,
auth_key: &HsIntroPtSessionIdKey,
subcredential: &[Subcredential],
intro_header: &[u8],
msg: &[u8]
) -> Result<(HsNtorHkdfKeyGenerator, Vec<u8>, Vec<u8>)>
Available on crate features
hs-common
and hs-service
only.Expand description
Conduct the HS Ntor handshake as the service.
Return a key generator which is the result of the key exchange, the RENDEZVOUS1 response to send to the client, and the introduction plaintext that we decrypted.
The response to the client is:
SERVER_PK Y [PK_PUBKEY_LEN bytes]
AUTH AUTH_INPUT_MAC [MAC_LEN bytes]