Skip to main content

wrap_accept_complete_with_mic

Function wrap_accept_complete_with_mic 

Source
pub fn wrap_accept_complete_with_mic(mic: &[u8]) -> Vec<u8> 
Expand description

SPNEGO NegTokenResp with accept-completed plus a mechListMIC ([RFC 4178] §4.2.2): the client validates it against the exported session key whenever it sent a MIC in its AUTHENTICATE message.

mic is HMAC-MD5(ExportedSessionKey, init || targ || auth) computed by the caller over the exact exchanged SPNEGO blobs.