pub fn fn_decrypt_handshake_flight(
flight: &MessageFlight,
server_hello_transcript: &HandshakeHash,
server_key_share: &Option<Vec<u8>>,
psk: &Option<Vec<u8>>,
group: &NamedGroup,
client: &bool,
sequence: &u64,
client_random: &Random,
suite: &CipherSuite,
) -> Result<MessageFlight, FnError>Expand description
Decrypt encrypted handshake messages from a MessageFlight and return a Flight of decrypted
messages.
This functions takes a MessageFlight and search for ApplicationData containing handshake
related messages. The decrypted messages are put in an output MessageFlight. If some encrypted
messages are coalesced messages, they will be split in different decrypted messages in the
resulting MessageFlight