Home
last modified time | relevance | path

Searched refs:key2 (Results 1 – 3 of 3) sorted by relevance

/trusty/user/app/sample/hwcryptokey-test/
Dversioned_keys_explicit.rs72 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()
/trusty/user/base/lib/hwkey/rust/src/
Dtest.rs40 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()
/trusty/user/app/sample/hwcryptohal/server/
Dhwcrypto_device_key.rs452 let key2 = match derived_key { in derived_clear_key() localVariable
456 expect!(openssl::memcmp::eq(&key1, &key2), "keys should have matched"); in derived_clear_key()