Skip to main content

intermediate_session_key

Function intermediate_session_key 

Source
pub fn intermediate_session_key(
    sid: &[u8],
    shared_point: &[u8],
    transcript: &[u8],
) -> [u8; 64]
Expand description

Derives ISK = H(lv_cat(G.DSI_ISK, sid, K) || transcript) (§7.2).

shared_point is the secret point K = scalar_mult_vfy(scalar, peer_share), and transcript is transcript_ir or transcript_oc. The result is the 64-byte intermediate session key, which the higher-level protocol processes before use: Sendspin derives K_wrap from it with super::wrap::k_wrap.

The value is secret. It is returned as bytes and never formatted.