()
| 45 | } |
| 46 | |
| 47 | fn generate_server_key() -> [u8; 32] { |
| 48 | let rng = SystemRandom::new(); |
| 49 | let mut key = [0u8; 32]; |
| 50 | rng.fill(&mut key).unwrap(); |
| 51 | key |
| 52 | } |
| 53 | |
| 54 | fn derive_master_key(server_key: &[u8], password: &str) -> [u8; 32] { |
| 55 | let user_secret = hash_password(password); |
nothing calls this directly
no outgoing calls
no test coverage detected