Skip to main content

derive_session_key

Function derive_session_key 

Source
pub fn derive_session_key(
    jwt_secret: &[u8],
    nonce: &[u8],
    plugin_id: &str,
) -> [u8; 32]
Expand description

Derive the per-connection MAC key. Inputs are known to both the kernel and the plugin: the shared jwt_secret, the per-registration nonce from the ack, and the registered plugin_id.