Function byztimed::ntske::serve_ntske [−][src]
pub async fn serve_ntske(
master_key: Aes128SivKey,
master_key_id: u32,
stream: &mut TlsStream<TcpStream>
) -> Result<()>
Run the NTS-KE protocol as a server
Reads an NTS-KE request from stream
and then writes back a response,
using master_key
to encrypt the cookies it sends.