pub fn decrypt_key_export(
    input: impl Read,
    passphrase: &str
) -> Result<Vec<ExportedRoomKey>, KeyExportError>
Expand description

Try to decrypt a reader into a list of exported room keys.

Arguments

  • passphrase - The passphrase that was used to encrypt the exported keys.

Examples

let exported_keys = decrypt_key_export(export, "1234").unwrap();
machine.import_keys(exported_keys, false, |_, _| {}).await.unwrap();