/system/security/keystore2/tests/ |
D | keystore2_client_delete_key_tests.rs | 24 use keystore2_test_utils::{get_keystore_service, key_generations, key_generations::Error}; 30 let keystore2 = get_keystore_service(); in keystore2_delete_key_success() 56 let keystore2 = get_keystore_service(); in keystore2_delete_key_fail() 73 let keystore2 = get_keystore_service(); in keystore2_delete_key_with_blob_domain_fail() 95 let keystore2 = get_keystore_service(); in keystore2_delete_key_blob_success() 116 let keystore2 = get_keystore_service(); in keystore2_delete_key_fails_with_missing_key_blob() 134 let keystore2 = get_keystore_service(); in keystore2_delete_key_blob_fail()
|
D | keystore2_client_update_subcomponent_tests.rs | 26 use keystore2_test_utils::{get_keystore_service, key_generations, key_generations::Error, run_as}; 34 let keystore2 = get_keystore_service(); in keystore2_update_subcomponent_success() 64 let keystore2 = get_keystore_service(); in keystore2_update_subcomponent_fail() 88 let keystore2 = get_keystore_service(); in keystore2_update_subcomponent_no_key_entry_cert_fail() 110 let keystore2 = get_keystore_service(); in keystore2_update_subcomponent_no_key_entry_cert_chain_success() 172 let keystore2 = get_keystore_service(); in keystore2_update_subcomponent_fails_permission_denied() 214 let keystore2 = get_keystore_service(); in keystore2_update_subcomponent_fails_permission_denied() 243 let keystore2 = get_keystore_service(); in keystore2_update_subcomponent_fails_permission_denied() 281 let keystore2 = get_keystore_service(); in keystore2_get_security_level_success() 290 let keystore2 = get_keystore_service(); in keystore2_get_security_level_failure()
|
D | keystore2_client_aes_key_tests.rs | 25 authorizations, get_keystore_service, key_generations, key_generations::Error, 86 let keystore2 = get_keystore_service(); in keystore2_aes_ecb_cbc_generate_key() 118 let keystore2 = get_keystore_service(); in keystore2_aes_ctr_gcm_generate_key_success() 148 let keystore2 = get_keystore_service(); in keystore2_aes_ctr_gcm_generate_key_fails_incompatible() 176 let keystore2 = get_keystore_service(); in keystore2_aes_key_fails_unsupported_key_size() 197 let keystore2 = get_keystore_service(); in keystore2_aes_gcm_key_fails_missing_min_mac_len() 218 let keystore2 = get_keystore_service(); in keystore2_aes_key_op_fails_multi_block_modes() 266 let keystore2 = get_keystore_service(); in keystore2_aes_key_op_fails_multi_padding_modes() 315 let keystore2 = get_keystore_service(); in keystore2_aes_key_op_fails_incompatible_padding() 347 let keystore2 = get_keystore_service(); in keystore2_aes_key_op_fails_incompatible_blockmode() [all …]
|
D | keystore2_client_grant_key_tests.rs | 28 authorizations, get_keystore_service, key_generations, key_generations::Error, run_as, 40 let keystore2 = get_keystore_service(); in generate_ec_key_and_grant_to_user() 141 let keystore2 = get_keystore_service(); in keystore2_grant_key_with_perm_none() 194 let keystore2 = get_keystore_service(); in keystore2_grant_get_info_use_key_perm() 256 let keystore2 = get_keystore_service(); in keystore2_grant_delete_key_success() 279 let keystore2 = get_keystore_service(); in keystore2_grant_delete_key_success() 295 let keystore2_inst = get_keystore_service(); in keystore2_grant_delete_key_success() 330 let keystore2 = get_keystore_service(); in keystore2_grant_key_fails_with_permission_denied() 354 let keystore2 = get_keystore_service(); in keystore2_grant_key_fails_with_permission_denied() 384 let keystore2 = get_keystore_service(); in keystore2_grant_key_fails_with_permission_denied() [all …]
|
D | keystore2_client_hmac_key_tests.rs | 24 authorizations, get_keystore_service, key_generations, key_generations::Error, 72 let keystore2 = get_keystore_service(); in keystore2_hmac_key_op_success() 99 let keystore2 = get_keystore_service(); in keystore2_hmac_gen_keys_fails_expect_unsupported_key_size() 131 let keystore2 = get_keystore_service(); in keystore2_hmac_gen_keys_fails_expect_unsupported_min_mac_length() 162 let keystore2 = get_keystore_service(); in keystore2_hmac_gen_key_multi_digests_fails_expect_unsupported_digest() 196 let keystore2 = get_keystore_service(); in keystore2_hmac_gen_key_no_digests_fails_expect_unsupported_digest() 230 let keystore2 = get_keystore_service(); in keystore2_hmac_gen_key_with_none_digest_fails_expect_unsupported_digest() 256 let keystore2 = get_keystore_service(); in keystore2_hmac_key_op_with_mac_len_greater_than_digest_len_fail() 287 let keystore2 = get_keystore_service(); in keystore2_hmac_key_op_with_mac_len_less_than_min_mac_len_fail()
|
D | keystore2_client_import_keys_tests.rs | 32 authorizations, get_keystore_service, key_generations, key_generations::Error, 136 let keystore2 = get_keystore_service(); in keystore2_rsa_import_key_success() 168 let keystore2 = get_keystore_service(); in keystore2_rsa_import_key_determine_key_size_and_pub_exponent() 197 let keystore2 = get_keystore_service(); in keystore2_rsa_import_key_fails_with_keysize_param_mismatch_error() 230 let keystore2 = get_keystore_service(); in keystore2_rsa_import_key_fails_with_public_exponent_param_mismatch_error() 264 let keystore2 = get_keystore_service(); in keystore2_rsa_import_key_with_multipurpose_fails_incompt_purpose_error() 302 let keystore2 = get_keystore_service(); in keystore2_import_ec_key_success() 333 let keystore2 = get_keystore_service(); in keystore2_ec_import_key_fails_with_mismatch_curve_error() 363 let keystore2 = get_keystore_service(); in keystore2_import_aes_key_success() 377 let keystore2 = get_keystore_service(); in keystore2_import_3des_key_success() [all …]
|
D | keystore2_client_3des_key_tests.rs | 25 authorizations, get_keystore_service, key_generations, key_generations::Error, 83 let keystore2 = get_keystore_service(); in keystore2_3des_ecb_cbc_generate_key_success() 102 let keystore2 = get_keystore_service(); in keystore2_3des_key_fails_unsupported_key_size() 125 let keystore2 = get_keystore_service(); in keystore2_3des_key_fails_missing_padding() 169 let keystore2 = get_keystore_service(); in keystore2_3des_key_encrypt_fails_invalid_input_length() 207 let keystore2 = get_keystore_service(); in keystore2_3des_key_fails_unsupported_block_mode()
|
D | keystore2_client_ec_key_tests.rs | 29 authorizations, get_keystore_service, key_generations, key_generations::Error, run_as, 78 let keystore2 = get_keystore_service(); in perform_ec_sign_key_op_success() 103 let keystore2 = get_keystore_service(); in perform_ec_sign_key_op_with_none_or_md5_digest() 202 let keystore2 = get_keystore_service(); in keystore2_get_key_entry_blob_fail() 227 let keystore2 = get_keystore_service(); in keystore2_generate_key_invalid_domain() 247 let keystore2 = get_keystore_service(); in keystore2_generate_ec_key_missing_curve() 283 let keystore2 = get_keystore_service(); in keystore2_generate_ec_key_25519_multi_purpose() 317 let keystore2 = get_keystore_service(); in keystore2_ec_25519_generate_key_success() 353 let keystore2 = get_keystore_service(); in keystore2_ec_25519_generate_key_fail() 392 let keystore2 = get_keystore_service(); in keystore2_create_op_with_incompatible_key_digest() [all …]
|
D | keystore2_client_list_entries_tests.rs | 27 use keystore2_test_utils::{get_keystore_service, key_generations, key_generations::Error, run_as}; 65 let keystore2 = get_keystore_service(); in keystore2_list_entries_success() 122 let keystore2 = get_keystore_service(); in keystore2_list_entries_success() 166 let keystore2 = get_keystore_service(); in keystore2_list_entries_fails_perm_denied() 181 let keystore2 = get_keystore_service(); in keystore2_list_entries_fails_invalid_arg() 203 let keystore2 = get_keystore_service(); in keystore2_list_entries_with_long_aliases_success()
|
D | keystore2_client_attest_key_tests.rs | 27 authorizations, get_keystore_service, key_generations, key_generations::Error, 43 let keystore2 = get_keystore_service(); in keystore2_attest_rsa_signing_key_success() 91 let keystore2 = get_keystore_service(); in keystore2_attest_rsa_encrypt_key_success() 140 let keystore2 = get_keystore_service(); in keystore2_attest_ec_key_success() 180 let keystore2 = get_keystore_service(); in keystore2_attest_rsa_signing_key_with_ec_25519_key_success() 231 let keystore2 = get_keystore_service(); in keystore2_generate_rsa_attest_key_with_multi_purpose_fail() 274 let keystore2 = get_keystore_service(); in keystore2_ec_attest_key_with_multi_purpose_fail() 311 let keystore2 = get_keystore_service(); in keystore2_attest_key_fails_missing_challenge() 354 let keystore2 = get_keystore_service(); in keystore2_attest_rsa_key_with_non_attest_key_fails_incompat_purpose_error() 396 let keystore2 = get_keystore_service(); in keystore2_attest_rsa_key_with_symmetric_key_fails_sys_error() [all …]
|
D | keystore2_client_key_id_domain_tests.rs | 25 authorizations, get_keystore_service, key_generations, key_generations::Error, 36 let keystore2 = get_keystore_service(); in keystore2_generate_key_with_key_id_domain_expect_sys_error() 56 let keystore2 = get_keystore_service(); in keystore2_find_key_with_key_id_as_domain() 113 let keystore2 = get_keystore_service(); in keystore2_key_id_alias_rebind_verify_by_alias() 180 let keystore2 = get_keystore_service(); in keystore2_key_id_alias_rebind_verify_by_key_id()
|
D | keystore2_client_key_agreement_tests.rs | 34 authorizations, get_keystore_service, key_generations, key_generations::Error, 92 let keystore2 = get_keystore_service(); in perform_ec_key_agreement() 126 let keystore2 = get_keystore_service(); in keystore2_ec_25519_agree_key_success() 152 let keystore2 = get_keystore_service(); in keystore2_ec_agree_key_with_different_curves_fail()
|
D | keystore2_client_rsa_key_tests.rs | 25 authorizations, get_keystore_service, key_generations, key_generations::Error, 116 let keystore2 = get_keystore_service(); in perform_rsa_sign_key_op_success() 152 let keystore2 = get_keystore_service(); in perform_rsa_sign_key_op_failure() 190 let keystore2 = get_keystore_service(); in create_rsa_encrypt_decrypt_key_op_success() 1536 let keystore2 = get_keystore_service(); in keystore2_rsa_generate_signing_key_padding_pss_fail() 1568 let keystore2 = get_keystore_service(); in keystore2_rsa_generate_key_with_oaep_padding_fail() 1599 let keystore2 = get_keystore_service(); in keystore2_rsa_generate_keys() 1628 let keystore2 = get_keystore_service(); in keystore2_rsa_encrypt_key_op_invalid_purpose() 1657 let keystore2 = get_keystore_service(); in keystore2_rsa_sign_key_op_invalid_purpose() 1686 let keystore2 = get_keystore_service(); in keystore2_rsa_key_unsupported_purpose() [all …]
|
D | keystore2_client_operation_tests.rs | 29 authorizations, get_keystore_service, key_generations, key_generations::Error, run_as, 300 let keystore2 = get_keystore_service(); in keystore2_ops_prune_test()
|
D | keystore2_client_test_utils.rs | 44 authorizations, get_keystore_service, key_generations, key_generations::Error, run_as, 126 let keystore2 = get_keystore_service(); in create_signing_operation()
|
/system/security/keystore2/tests/legacy_blobs/ |
D | keystore2_legacy_blob_tests.rs | 43 use keystore2_test_utils::get_keystore_service; 162 let keystore2 = get_keystore_service(); in keystore2_encrypted_characteristics() 270 let keystore2 = get_keystore_service(); in keystore2_encrypted_characteristics() 419 let keystore2 = get_keystore_service(); in keystore2_encrypted_certificates() 531 let keystore2 = get_keystore_service(); in keystore2_encrypted_certificates()
|
/system/security/keystore2/test_utils/ |
D | lib.rs | 115 pub fn get_keystore_service() -> binder::Strong<dyn IKeystoreService> { in get_keystore_service() function
|