Function decrypt_session_key_with_password

Source
pub fn decrypt_session_key_with_password<F>(
    packet: &SymKeyEncryptedSessionKey,
    msg_pw: F,
) -> Result<PlainSessionKey>
where F: FnOnce() -> String,
Expand description

Decrypts session key from SKESK packet.

Returns decrypted or derived session key and symmetric algorithm of the key.