Searched refs:key2 (Results 1 – 3 of 3) sorted by relevance
72 fn keys_are_sufficiently_distinct(key1: Vec<u8>, key2: Vec<u8>) -> bool { in keys_are_sufficiently_distinct()73 let differing_bytes = key1.iter().zip(key2.iter()).filter(|(&x1, &x2)| x1 != x2).count(); in keys_are_sufficiently_distinct()75 std::cmp::min(key1.len(), key2.len()) - differing_bytes <= 4 in keys_are_sufficiently_distinct()
40 fn keys_are_sufficiently_distinct(key1: &[u8], key2: &[u8]) -> bool { in keys_are_sufficiently_distinct()41 let (sk, lk) = if key1.len() < key2.len() { (key1, key2) } else { (key2, key1) }; in keys_are_sufficiently_distinct()
452 let key2 = match derived_key { in derived_clear_key() localVariable456 expect!(openssl::memcmp::eq(&key1, &key2), "keys should have matched"); in derived_clear_key()