Skip to main content

preview

Function preview 

Source
pub fn preview(buf: &[u8]) -> Result<Preview>
Available on crate feature rustcrypto only.
Expand description

Reads the four octets of a message that are always in the clear.

This is the first thing a receiver does: it cannot parse the rest of the header until it has deobfuscated it, and it cannot deobfuscate it until it has found the session.