π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
style(rust): format SRP verification asserts
Prateek Sunal3755db79f625
diff --git a/rust/core/src/auth/srp.rs b/rust/core/src/auth/srp.rsindex ac7d894e2e..977a00d041 100644--- a/rust/core/src/auth/srp.rs+++ b/rust/core/src/auth/srp.rs@@ -159,7 +159,9 @@ impl SrpSession {let expected = m2_hasher.finalize().to_vec();if expected.ct_eq(server_m2).unwrap_u8() != 1 {- return Err(AuthError::Srp("Server proof verification failed".to_string()));+ return Err(AuthError::Srp(+ "Server proof verification failed".to_string(),+ ));}Ok(())@@ -214,7 +216,11 @@ mod tests {let padded = session.public_a();assert_eq!(padded.len(), SRP_N_BYTES);- assert!(padded[..SRP_N_BYTES - a_public.len()].iter().all(|&b| b == 0));+ assert!(+ padded[..SRP_N_BYTES - a_public.len()]+ .iter()+ .all(|&b| b == 0)+ );assert_eq!(&padded[SRP_N_BYTES - a_public.len()..], a_public.as_slice());}