Home
last modified time | relevance | path

Searched refs:SecurityLevel (Results 1 – 25 of 106) sorted by relevance

12345

/system/security/keystore2/src/legacy_blob/test_utils/
Dlegacy_blob_test_vectors.rs20 KeyPurpose::KeyPurpose, SecurityLevel::SecurityLevel,
38 KeyParameter::new(KeyParameterValue::KeyPurpose(KeyPurpose::SIGN), SecurityLevel::KEYSTORE), in structured_test_params()
41 SecurityLevel::KEYSTORE, in structured_test_params()
43 KeyParameter::new(KeyParameterValue::Digest(Digest::SHA_2_256), SecurityLevel::KEYSTORE), in structured_test_params()
46 SecurityLevel::KEYSTORE, in structured_test_params()
48 KeyParameter::new(KeyParameterValue::Algorithm(Algorithm::EC), SecurityLevel::KEYSTORE), in structured_test_params()
49 KeyParameter::new(KeyParameterValue::KeySize(256), SecurityLevel::KEYSTORE), in structured_test_params()
50 KeyParameter::new(KeyParameterValue::EcCurve(EcCurve::P_256), SecurityLevel::KEYSTORE), in structured_test_params()
53 SecurityLevel::KEYSTORE, in structured_test_params()
57 SecurityLevel::KEYSTORE, in structured_test_params()
[all …]
/system/security/keystore2/src/
Dremote_provisioning.rs24 KeyParameter::KeyParameter, KeyParameterValue::KeyParameterValue, SecurityLevel::SecurityLevel,
45 security_level: SecurityLevel,
50 pub fn new(security_level: SecurityLevel) -> Self { in new()
58 SecurityLevel::STRONGBOX => "remote_provisioning.strongbox.rkp_only", in is_rkp_only()
59 SecurityLevel::TRUSTED_ENVIRONMENT => "remote_provisioning.tee.rkp_only", in is_rkp_only()
123 security_level: &SecurityLevel, in get_rkpd_attestation_key() argument
Dkm_compat.rs28 KeyParameterValue::KeyParameterValue, KeyPurpose::KeyPurpose, SecurityLevel::SecurityLevel,
156 map_binder_status(keystore_compat_service.getKeyMintDevice(SecurityLevel::SOFTWARE)) in wrap()
330 sec_level: SecurityLevel,
334 pub fn new(sec_level: SecurityLevel) -> Self { in new()
343 if self.sec_level == SecurityLevel::STRONGBOX { in emulation_required()
376 pub fn new(sec_level: SecurityLevel) -> Self { in new()
436 (SecurityLevel::TRUSTED_ENVIRONMENT, vec![], false), in test_keymintv1_emulation_required()
438 SecurityLevel::TRUSTED_ENVIRONMENT, in test_keymintv1_emulation_required()
452 SecurityLevel::TRUSTED_ENVIRONMENT, in test_keymintv1_emulation_required()
460 SecurityLevel::TRUSTED_ENVIRONMENT, in test_keymintv1_emulation_required()
[all …]
Dglobals.rs35 KeyMintHardwareInfo::KeyMintHardwareInfo, SecurityLevel::SecurityLevel,
97 uuid_by_sec_level: HashMap<SecurityLevel, Uuid>,
103 sec_level: &SecurityLevel, in dev_by_sec_level() argument
121 fn insert(&mut self, sec_level: SecurityLevel, dev: Strong<T>, hw_info: KeyMintHardwareInfo) { in insert() argument
182 fn keymint_service_name(security_level: &SecurityLevel) -> Result<Option<String>> { in keymint_service_name()
187 SecurityLevel::TRUSTED_ENVIRONMENT => { in keymint_service_name()
194 SecurityLevel::STRONGBOX => { in keymint_service_name()
216 security_level: &SecurityLevel, in connect_keymint() argument
335 security_level: &SecurityLevel, in get_keymint_device() argument
420 pub fn get_remotely_provisioned_component_name(security_level: &SecurityLevel) -> Result<String> { in get_remotely_provisioned_component_name()
[all …]
Dkey_parameter.rs104 PaddingMode::PaddingMode, SecurityLevel::SecurityLevel, Tag::Tag,
174 implement_associate_primitive_for_aidl_enum! {SecurityLevel}
795 security_level: SecurityLevel(100),
1046 security_level: SecurityLevel,
1051 pub fn new(value: KeyParameterValue, security_level: SecurityLevel) -> Self { in new()
1064 security_level_val: SecurityLevel, in new_from_sql() argument
1083 pub fn security_level(&self) -> &SecurityLevel { in security_level() argument
1114 Tag::HARDWARE_TYPE => return KmKeyParameterValue::SecurityLevel(Default::default()), in get_field_by_tag_type()
1150 | (&KmKeyParameterValue::SecurityLevel(_), KmKeyParameterValue::SecurityLevel(_)) in check_field_matches_tag_type()
1192 SecurityLevel::STRONGBOX, in test_key_parameter()
[all …]
/system/hardware/interfaces/keystore2/aidl/android/system/keystore2/
DAuthorization.aidl20 import android.hardware.security.keymint.SecurityLevel;
25 SecurityLevel securityLevel = SecurityLevel.SOFTWARE;
DKeyMetadata.aidl19 import android.hardware.security.keymint.SecurityLevel;
43 SecurityLevel keySecurityLevel = SecurityLevel.SOFTWARE;
/system/security/keystore2/tests/
Dkeystore2_client_delete_key_tests.rs18 ErrorCode::ErrorCode, SecurityLevel::SecurityLevel,
31 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_delete_key_success()
74 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_delete_key_with_blob_domain_fail()
96 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_delete_key_blob_success()
117 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_delete_key_fails_with_missing_key_blob()
135 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_delete_key_blob_fail()
Dkeystore2_client_hmac_key_tests.rs17 SecurityLevel::SecurityLevel,
73 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_hmac_key_op_success()
100 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_hmac_gen_keys_fails_expect_unsupported_key_size()
132 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_hmac_gen_keys_fails_expect_unsupported_min_mac_length()
163 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_hmac_gen_key_multi_digests_fails_expect_unsupported_digest()
197 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_hmac_gen_key_no_digests_fails_expect_unsupported_digest()
231 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_hmac_gen_key_with_none_digest_fails_expect_unsupported_digest()
257 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_hmac_key_op_with_mac_len_greater_than_digest_len_fail()
288 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_hmac_key_op_with_mac_len_less_than_min_mac_len_fail()
Dkeystore2_client_aes_key_tests.rs17 PaddingMode::PaddingMode, SecurityLevel::SecurityLevel,
91 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_ecb_cbc_generate_key()
122 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_ctr_gcm_generate_key_success()
152 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_ctr_gcm_generate_key_fails_incompatible()
177 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_key_fails_unsupported_key_size()
198 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_gcm_key_fails_missing_min_mac_len()
219 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_key_op_fails_multi_block_modes()
267 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_key_op_fails_multi_padding_modes()
316 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_key_op_fails_incompatible_padding()
348 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_aes_key_op_fails_incompatible_blockmode()
[all …]
Dkeystore2_client_import_keys_tests.rs23 KeyPurpose::KeyPurpose, PaddingMode::PaddingMode, SecurityLevel::SecurityLevel,
139 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_rsa_import_key_success()
171 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_rsa_import_key_determine_key_size_and_pub_exponent()
200 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_rsa_import_key_fails_with_keysize_param_mismatch_error()
233 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_rsa_import_key_fails_with_public_exponent_param_mismatch_error()
267 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_rsa_import_key_with_multipurpose_fails_incompt_purpose_error()
305 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_import_ec_key_success()
343 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_ec_import_key_fails_with_mismatch_curve_error()
373 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_import_aes_key_success()
388 keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT), in keystore2_import_3des_key_success()
[all …]
Dkeystore2_client_3des_key_tests.rs17 PaddingMode::PaddingMode, SecurityLevel::SecurityLevel,
87 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_3des_ecb_cbc_generate_key_success()
103 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_3des_key_fails_unsupported_key_size()
126 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_3des_key_fails_missing_padding()
170 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_3des_key_encrypt_fails_invalid_input_length()
208 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_3des_key_fails_unsupported_block_mode()
Dkeystore2_client_authorizations_tests.rs23 SecurityLevel::SecurityLevel, Tag::Tag,
138 SecurityLevel::KEYSTORE | SecurityLevel::TRUSTED_ENVIRONMENT in generate_key_and_perform_op_with_max_usage_limit()
141 assert_eq!(auth.securityLevel, SecurityLevel::KEYSTORE); in generate_key_and_perform_op_with_max_usage_limit()
160 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_gen_key_auth_active_datetime_test_success()
192 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_gen_key_auth_future_active_datetime_test_op_fail()
224 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_gen_key_auth_future_origination_expire_datetime_test_success()
256 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_gen_key_auth_origination_expire_datetime_test_op_fail()
288 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_gen_key_auth_future_usage_expire_datetime_hmac_verify_op_success()
316 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_gen_key_auth_usage_expire_datetime_hmac_verify_op_fail()
353 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_gen_key_auth_usage_future_expire_datetime_decrypt_op_success()
[all …]
Dkeystore2_client_attest_key_tests.rs20 SecurityLevel::SecurityLevel, Tag::Tag,
50 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_attest_rsa_signing_key_success()
98 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_attest_rsa_encrypt_key_success()
147 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_attest_ec_key_success()
187 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_attest_rsa_signing_key_with_ec_25519_key_success()
238 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_generate_rsa_attest_key_with_multi_purpose_fail()
281 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_ec_attest_key_with_multi_purpose_fail()
318 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_attest_key_fails_missing_challenge()
361 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_attest_rsa_key_with_non_attest_key_fails_incompat_purpose_error()
403 let sec_level = keystore2.getSecurityLevel(SecurityLevel::TRUSTED_ENVIRONMENT).unwrap(); in keystore2_attest_rsa_key_with_symmetric_key_fails_sys_error()
[all …]
/system/security/keystore2/aidl/android/security/compat/
DIKeystoreCompatService.aidl20 import android.hardware.security.keymint.SecurityLevel;
44 IKeyMintDevice getKeyMintDevice (SecurityLevel securityLevel); in getKeyMintDevice()
56 ISharedSecret getSharedSecret (SecurityLevel securityLevel); in getSharedSecret()
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/current/android/system/keystore2/
DAuthorization.aidl38 …android.hardware.security.keymint.SecurityLevel securityLevel = android.hardware.security.keymint.
DKeyMetadata.aidl39 …android.hardware.security.keymint.SecurityLevel keySecurityLevel = android.hardware.security.keymi…
/system/security/keystore2/aidl/android/security/metrics/
DRkpErrorStats.aidl20 import android.security.metrics.SecurityLevel;
28 SecurityLevel security_level;
DKeyCreationWithAuthInfo.aidl20 import android.security.metrics.SecurityLevel;
34 SecurityLevel security_level;
DKeyOperationWithGeneralInfo.aidl20 import android.security.metrics.SecurityLevel;
31 SecurityLevel security_level;
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/4/android/system/keystore2/
DAuthorization.aidl38 …android.hardware.security.keymint.SecurityLevel securityLevel = android.hardware.security.keymint.
DKeyMetadata.aidl39 …android.hardware.security.keymint.SecurityLevel keySecurityLevel = android.hardware.security.keymi…
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/2/android/system/keystore2/
DAuthorization.aidl38 …android.hardware.security.keymint.SecurityLevel securityLevel = android.hardware.security.keymint.
DKeyMetadata.aidl39 …android.hardware.security.keymint.SecurityLevel keySecurityLevel = android.hardware.security.keymi…
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/3/android/system/keystore2/
DAuthorization.aidl38 …android.hardware.security.keymint.SecurityLevel securityLevel = android.hardware.security.keymint.

12345