Skip to main content

validate_backup_algorithm

Function validate_backup_algorithm 

Source
pub fn validate_backup_algorithm(algorithm: &str) -> Result<(), MatrixError>
Expand description

Refuse anything but this server’s one symmetric key-backup algorithm (plan P9 brief, MSC3270 naming) — m.megolm_backup.v1.curve25519-aes-sha2 (the PkEncryption backup) is refused outright.