/// Complete the handshake, resulting in a STROBE transcript bound to the session id
Complete the handshake, resulting in a STROBE transcript bound to the session id
Complete the handshake resulting in a STROBE transcript bound to the session id
pub fn complete(self, transcript: Option<Strobe>, handshake: SessionHandshake) -> Strobe {
        let mut transcript = transcript
            .map(|mut transcript| {
                transcript.ad(
                    b"https://github.com/evq/yodel/cpace/session/handshake",
                    false,
                );
                transcript
            })
            .unwrap_or_else(|| {
                Strobe::new(
                    b"https://github.com/evq/yodel/cpace/session/handshake",
                    SecParam::B256,
                )
            });
        // Inspired by "Analysing and Patching SPEKE in ISO/IEC." session key computation (A.)
        transcript.ad(cmp::min(self.id.as_ref(), handshake.id.as_ref()), false);
        transcript.ad(cmp::max(self.id.as_ref(), handshake.id.as_ref()), false);
        transcript
    }
pub fn complete ( self , transcript : Option < Strobe > , handshake : SessionHandshake ) -> Strobe { let mut transcript = transcript . map ( | mut transcript | { transcript . ad ( b" " , false , ) ; transcript } ) . unwrap_or_else ( | | { Strobe :: new ( b" " , SecParam :: B256 , ) } ) ; // Inspired by "Analysing and Patching SPEKE in ISO/IEC." session key computation (A.) transcript . ad ( cmp :: min ( self . id . as_ref ( ) , handshake . id . as_ref ( ) ) , false ) ; transcript . ad ( cmp :: max ( self . id . as_ref ( ) , handshake . id . as_ref ( ) ) , false ) ; transcript }
Complete the handshake, resulting in a STROBE transcript bound to the session id
Complete the handshake resulting in a STROBE transcript bound to the session id
self
transcript
Option<Strobe>
handshake
SessionHandshake