Home
last modified time | relevance | path

Searched refs:key_descriptors (Results 1 – 2 of 2) sorted by relevance

/system/security/keystore2/tests/
Dkeystore2_client_list_entries_tests.rs36 let key_descriptors = keystore2.listEntries(domain, nspace).unwrap(); in key_alias_exists() localVariable
37 let alias_count = key_descriptors in key_alias_exists()
138 let key_descriptors = keystore2.listEntries(Domain::APP, -1).unwrap(); in keystore2_list_entries_success() localVariable
139 assert_eq!(1, key_descriptors.len()); in keystore2_list_entries_success()
141 let key = key_descriptors.get(0).unwrap(); in keystore2_list_entries_success()
148 let key_descriptors = keystore2.listEntries(Domain::APP, -1).unwrap(); in keystore2_list_entries_success() localVariable
149 assert_eq!(0, key_descriptors.len()); in keystore2_list_entries_success()
207 let key_descriptors = keystore2.listEntries(Domain::APP, -1).unwrap(); in keystore2_list_entries_with_long_aliases_success() localVariable
208 if !key_descriptors.is_empty() { in keystore2_list_entries_with_long_aliases_success()
209 key_descriptors.into_iter().map(|key| key.alias.unwrap()).for_each(|alias| { in keystore2_list_entries_with_long_aliases_success()
[all …]
/system/security/keystore2/src/
Dutils.rs296 key_descriptors: &[KeyDescriptor], in estimate_safe_amount_to_return()
303 for kd in key_descriptors.iter() { in estimate_safe_amount_to_return()
322 key_descriptors.len(), in estimate_safe_amount_to_return()
480 fn aliases_from_key_descriptors(key_descriptors: &[KeyDescriptor]) -> Vec<String> { in aliases_from_key_descriptors()
481 key_descriptors in aliases_from_key_descriptors()
498 let key_descriptors = create_key_descriptors_from_aliases(&key_aliases); in test_safe_amount_to_return() localVariable
500 assert_eq!(estimate_safe_amount_to_return(&key_descriptors, 20), 1); in test_safe_amount_to_return()
501 assert_eq!(estimate_safe_amount_to_return(&key_descriptors, 50), 2); in test_safe_amount_to_return()
502 assert_eq!(estimate_safe_amount_to_return(&key_descriptors, 100), 3); in test_safe_amount_to_return()