Lines Matching refs:None
553 None in try_get()
1246 KeyDescriptor { domain, nspace, alias: Some(alias.to_string()), blob: None }; in key_exists()
1321 blob: None, in load_super_key()
1331 Some(KsError::Rc(ResponseCode::KEY_NOT_FOUND)) => Ok(None), in load_super_key()
1377 None => None, in get_or_create_key_with()
1390 None => { in get_or_create_key_with()
1567 None, in create_attestation_key_entry()
1646 (None, SubComponentType::CERT) | (None, SubComponentType::CERT_CHAIN) => { in set_blob_internal()
1654 (None, _) => { in set_blob_internal()
1770 None, in store_signed_attestation_certificate_chain()
1773 Self::set_blob_internal(&tx, key_id, SubComponentType::CERT, Some(batch_cert), None) in store_signed_attestation_certificate_chain()
2007 (Some(_alias), None) => { in get_attestation_pool_status()
2067 return Ok(None).no_gc(); in retrieve_attestation_key_and_cert_chain()
2244 KeyDescriptor { alias: Some(alias), domain: Domain::APP, nspace, blob: None } in store_new_key()
2245 | KeyDescriptor { alias: Some(alias), domain: Domain::SELINUX, nspace, blob: None } => { in store_new_key()
2266 Self::set_blob_internal(tx, key_id.id(), SubComponentType::CERT, Some(&cert), None) in store_new_key()
2275 None, in store_new_key()
2302 KeyDescriptor { alias: Some(alias), domain: Domain::APP, nspace, blob: None } in store_new_certificate()
2303 | KeyDescriptor { alias: Some(alias), domain: Domain::SELINUX, nspace, blob: None } => { in store_new_certificate()
2321 None, in store_new_certificate()
2404 Ok((key_id, access_key, None)) in load_access_tuple()
2478 None in load_access_tuple()
2507 let mut key_blob: Option<(i64, Vec<u8>)> = None; in load_blob_components()
2508 let mut cert_blob: Option<Vec<u8>> = None; in load_blob_components()
2509 let mut cert_chain_blob: Option<Vec<u8>> = None; in load_blob_components()
2539 let blob_info = key_blob.map_or::<Result<_>, _>(Ok(None), |(blob_id, blob)| { in load_blob_components()
2665 _ => None, in load_key_entry_internal()
2694 None => match KEY_ID_LOCK.try_get(key_id) { in load_key_entry_internal()
2695 None => { in load_key_entry_internal()
3015 blob: None, in list()
3091 Ok(KeyDescriptor { domain: Domain::GRANT, nspace: grant_id, alias: None, blob: None }) in grant()
3200 blob: None, in load_key_descriptor()
3246 let mut db = KeystoreDB { conn, gc: None, perboot: Arc::new(perboot::PerbootDB::new()) }; in new_test_db()
3259 let gc_db = KeystoreDB::new(path, None).expect("Failed to open test gc db_connection."); in new_test_db_with_gc()
3395 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files()
3401 let db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files()
3421 assert_eq!(extractor(&entries[0]), (Domain::APP, 100, None, KEYSTORE_UUID)); in test_create_key_entry()
3422 assert_eq!(extractor(&entries[1]), (Domain::SELINUX, 101, None, KEYSTORE_UUID)); in test_create_key_entry()
3629 (Some(Domain::APP), Some(42), None, Some(KEYSTORE_UUID)) in test_rebind_alias()
3633 (Some(Domain::APP), Some(42), None, Some(KEYSTORE_UUID)) in test_rebind_alias()
3646 (Some(Domain::APP), Some(42), None, Some(KEYSTORE_UUID)) in test_rebind_alias()
3653 assert_eq!(extractor(&entries[0]), (None, None, None, Some(KEYSTORE_UUID))); in test_rebind_alias()
3681 assert_eq!(extractor(&entries[0]), (None, None, None, Some(KEYSTORE_UUID))); in test_rebind_alias()
3706 blob: None, in test_grant_ungrant()
3726 blob: None, in test_grant_ungrant()
3739 alias: None, in test_grant_ungrant()
3740 blob: None, in test_grant_ungrant()
3748 blob: None, in test_grant_ungrant()
3762 blob: None, in test_grant_ungrant()
3775 alias: None, in test_grant_ungrant()
3776 blob: None, in test_grant_ungrant()
3792 blob: None, in test_grant_ungrant()
3805 alias: None, in test_grant_ungrant()
3806 blob: None, in test_grant_ungrant()
3858 db.set_blob(&key_id, SubComponentType::CERT, Some(TEST_CERT_BLOB), None)?; in test_set_blob()
3859 db.set_blob(&key_id, SubComponentType::CERT_CHAIN, Some(TEST_CERT_CHAIN_BLOB), None)?; in test_set_blob()
3895 let key_id = make_test_key_entry(&mut db, Domain::APP, 1, TEST_ALIAS, None) in test_insert_and_load_full_keyentry_domain_app()
3904 blob: None, in test_insert_and_load_full_keyentry_domain_app()
3912 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_insert_and_load_full_keyentry_domain_app()
3919 blob: None, in test_insert_and_load_full_keyentry_domain_app()
3934 blob: None, in test_insert_and_load_full_keyentry_domain_app()
3958 blob: None, in test_insert_and_load_certificate_entry_domain_app()
3972 blob: None, in test_insert_and_load_certificate_entry_domain_app()
3990 blob: None, in test_insert_and_load_certificate_entry_domain_app()
4005 blob: None, in test_insert_and_load_certificate_entry_domain_app()
4023 let key_id = make_test_key_entry(&mut db, Domain::SELINUX, 1, TEST_ALIAS, None) in test_insert_and_load_full_keyentry_domain_selinux()
4032 blob: None, in test_insert_and_load_full_keyentry_domain_selinux()
4040 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_insert_and_load_full_keyentry_domain_selinux()
4047 blob: None, in test_insert_and_load_full_keyentry_domain_selinux()
4062 blob: None, in test_insert_and_load_full_keyentry_domain_selinux()
4080 let key_id = make_test_key_entry(&mut db, Domain::SELINUX, 1, TEST_ALIAS, None) in test_insert_and_load_full_keyentry_domain_key_id()
4085 &KeyDescriptor { domain: Domain::KEY_ID, nspace: key_id, alias: None, blob: None }, in test_insert_and_load_full_keyentry_domain_key_id()
4093 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_insert_and_load_full_keyentry_domain_key_id()
4096 &KeyDescriptor { domain: Domain::KEY_ID, nspace: key_id, alias: None, blob: None }, in test_insert_and_load_full_keyentry_domain_key_id()
4106 &KeyDescriptor { domain: Domain::KEY_ID, nspace: key_id, alias: None, blob: None }, in test_insert_and_load_full_keyentry_domain_key_id()
4130 &KeyDescriptor { domain: Domain::KEY_ID, nspace: key_id, alias: None, blob: None }, in test_check_and_update_key_usage_count_with_limited_use_key()
4171 let key_id = make_test_key_entry(&mut db, Domain::APP, 1, TEST_ALIAS, None) in test_insert_and_load_full_keyentry_from_grant()
4181 blob: None, in test_insert_and_load_full_keyentry_from_grant()
4200 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_insert_and_load_full_keyentry_from_grant()
4229 let key_id = make_test_key_entry(&mut db, Domain::APP, OWNER_UID as i64, TEST_ALIAS, None) in test_insert_and_load_full_keyentry_from_grant_by_key_id()
4238 blob: None, in test_insert_and_load_full_keyentry_from_grant_by_key_id()
4267 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_insert_and_load_full_keyentry_from_grant_by_key_id()
4284 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_insert_and_load_full_keyentry_from_grant_by_key_id()
4315 make_test_key_entry(&mut db, Domain::APP, SOURCE_UID as i64, SOURCE_ALIAS, None) in test_migrate_key_app_to_app()
4322 blob: None, in test_migrate_key_app_to_app()
4329 blob: None, in test_migrate_key_app_to_app()
4354 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_migrate_key_app_to_app()
4384 make_test_key_entry(&mut db, Domain::APP, SOURCE_UID as i64, SOURCE_ALIAS, None) in test_migrate_key_app_to_selinux()
4391 blob: None, in test_migrate_key_app_to_selinux()
4398 blob: None, in test_migrate_key_app_to_selinux()
4423 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_migrate_key_app_to_selinux()
4452 make_test_key_entry(&mut db, Domain::APP, SOURCE_UID as i64, SOURCE_ALIAS, None) in test_migrate_key_destination_occupied()
4454 make_test_key_entry(&mut db, Domain::APP, DESTINATION_UID as i64, DESTINATION_ALIAS, None) in test_migrate_key_destination_occupied()
4461 blob: None, in test_migrate_key_destination_occupied()
4487 let mut db = KeystoreDB::new(temp_dir.path(), None).unwrap(); in test_upgrade_0_to_1()
4489 make_test_key_entry(&mut db, Domain::APP, UID as i64, ALIAS1, None).unwrap().id(); in test_upgrade_0_to_1()
4501 blob: None, in test_upgrade_0_to_1()
4514 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id_untouched1, None)); in test_upgrade_0_to_1()
4521 blob: None, in test_upgrade_0_to_1()
4541 blob: None, in test_upgrade_0_to_1()
4567 blob: None, in test_upgrade_0_to_1()
4580 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id_untouched1, None)); in test_upgrade_0_to_1()
4587 blob: None, in test_upgrade_0_to_1()
4608 blob: None, in test_upgrade_0_to_1()
4633 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_insert_and_load_full_keyentry_domain_app_concurrently()
4634 let key_id = make_test_key_entry(&mut db, Domain::APP, 33, KEY_LOCK_TEST_ALIAS, None) in test_insert_and_load_full_keyentry_domain_app_concurrently()
4643 blob: None, in test_insert_and_load_full_keyentry_domain_app_concurrently()
4651 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_insert_and_load_full_keyentry_domain_app_concurrently()
4664 let mut db = KeystoreDB::new(temp_dir.path(), None).unwrap(); in test_insert_and_load_full_keyentry_domain_app_concurrently()
4671 blob: None, in test_insert_and_load_full_keyentry_domain_app_concurrently()
4707 let mut db1 = KeystoreDB::new(temp_dir.path(), None).expect("Failed to open database1."); in test_database_busy_error_code()
4708 let mut db2 = KeystoreDB::new(temp_dir.path(), None).expect("Failed to open database2."); in test_database_busy_error_code()
4757 make_test_key_entry(&mut db, Domain::APP, 1, &alias, None) in test_large_number_of_concurrent_db_manipulations()
4772 make_test_key_entry(&mut db, Domain::APP, 2, &alias, None) in test_large_number_of_concurrent_db_manipulations()
4785 blob: None, in test_large_number_of_concurrent_db_manipulations()
4805 blob: None, in test_large_number_of_concurrent_db_manipulations()
4826 make_test_key_entry(&mut db, Domain::APP, 3, &alias, None) in test_large_number_of_concurrent_db_manipulations()
4832 blob: None, in test_large_number_of_concurrent_db_manipulations()
4848 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in list()
4876 let entry = make_test_key_entry(&mut db, *domain, *ns, *alias, None) in list()
4894 blob: None, in list()
4896 _ => None, in list()
4924 _ => None, in list()
4971 None => None, in get_keyentry()
5262 db.set_blob(&key_id, SubComponentType::CERT, Some(TEST_CERT_BLOB), None)?; in make_test_key_entry()
5263 db.set_blob(&key_id, SubComponentType::CERT_CHAIN, Some(TEST_CERT_CHAIN_BLOB), None)?; in make_test_key_entry()
5320 db.set_blob(&key_id, SubComponentType::CERT, Some(TEST_CERT_BLOB), None)?; in make_bootlevel_key_entry()
5321 db.set_blob(&key_id, SubComponentType::CERT_CHAIN, Some(TEST_CERT_CHAIN_BLOB), None)?; in make_bootlevel_key_entry()
5323 let mut params = make_test_params(None); in make_bootlevel_key_entry()
5336 let mut params = make_test_params(None); in make_bootlevel_test_key_entry_test_vector()
5449 make_test_key_entry(&mut db, Domain::APP, 210000, TEST_ALIAS, None)?; in test_unbind_keys_for_user()
5450 make_test_key_entry(&mut db, Domain::APP, 110000, TEST_ALIAS, None)?; in test_unbind_keys_for_user()
5489 None, in test_store_super_key()
5611 db.set_blob(&key_id, SubComponentType::KEY_BLOB, Some(TEST_KEY_BLOB), None)?; in test_verify_key_table_size_reporting()
5623 let params = make_test_params(None); in test_verify_key_table_size_reporting()
5670 make_test_key_entry(&mut db, Domain::APP, OWNER, TEST_ALIAS, None)?; in test_verify_grant_table_size_reporting()
5678 blob: None, in test_verify_grant_table_size_reporting()
5730 let key_id = make_test_key_entry(&mut db, Domain::APP, 1, TEST_ALIAS, None)?.0; in test_load_key_descriptor()
5739 assert_eq!(db.load_key_descriptor(key_id + 1)?, None); in test_load_key_descriptor()