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

Decrypts session key from SKESK packet.

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