Home
last modified time | relevance | path

Searched refs:characteristics (Results 1 – 25 of 31) sorted by relevance

12

/system/keymaster/legacy_support/
Dkeymaster_passthrough_engine.cpp200 static void ConvertCharacteristics(const keymaster_key_characteristics_t& characteristics, in ConvertCharacteristics() argument
202 if (hw_enforced) hw_enforced->Reinitialize(characteristics.hw_enforced); in ConvertCharacteristics()
203 if (sw_enforced) sw_enforced->Reinitialize(characteristics.sw_enforced); in ConvertCharacteristics()
212 keymaster_key_characteristics_t* characteristics = nullptr; in GenerateKey() local
215 km_device_->generate_key(km_device_, &key_description, &blob, &characteristics); in GenerateKey()
221 ConvertCharacteristics(*characteristics, hw_enforced, sw_enforced); in GenerateKey()
222 keymaster_free_characteristics(characteristics); in GenerateKey()
223 free(characteristics); in GenerateKey()
232 keymaster_key_characteristics_t characteristics = {}; in GenerateKey() local
235 km_device_->generate_key(km_device_, &key_description, &blob, &characteristics); in GenerateKey()
[all …]
Dkeymaster1_engine.cpp67 static void ConvertCharacteristics(keymaster_key_characteristics_t* characteristics, in ConvertCharacteristics() argument
70 characteristics); in ConvertCharacteristics()
71 if (hw_enforced) hw_enforced->Reinitialize(characteristics->hw_enforced); in ConvertCharacteristics()
72 if (sw_enforced) sw_enforced->Reinitialize(characteristics->sw_enforced); in ConvertCharacteristics()
81 keymaster_key_characteristics_t* characteristics; in GenerateKey() local
84 &blob, &characteristics); in GenerateKey()
90 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced); in GenerateKey()
102 keymaster_key_characteristics_t* characteristics; in ImportKey() local
108 &blob, &characteristics); in ImportKey()
114 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced); in ImportKey()
/system/keymint/common/src/
Dkeyblob.rs120 pub characteristics: Vec<KeyCharacteristics>, field
294 characteristics: Vec<KeyCharacteristics>,
299 info.try_extend_from_slice(&characteristics.into_vec()?)?;
315 pub characteristics: Vec<KeyCharacteristics>, field
323 tag::characteristics_at(&self.characteristics, sec_level) in characteristics_at()
380 let characteristics = plaintext_keyblob.characteristics; in encrypt() localVariable
384 derive_kek(kdf, root_key, &key_derivation_input, characteristics.clone(), hidden, sdd)?; in encrypt()
407 characteristics, in encrypt()
439 let characteristics = encrypted_keyblob.characteristics; in decrypt() localVariable
444 characteristics.clone(), in decrypt()
[all …]
/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp76 keymaster_key_characteristics_t characteristics = {}; in ParseKeyBlob() local
89 &characteristics); in ParseKeyBlob()
96 hw_enforced.Reinitialize(characteristics.hw_enforced); in ParseKeyBlob()
97 sw_enforced.Reinitialize(characteristics.sw_enforced); in ParseKeyBlob()
99 keymaster_free_characteristics(&characteristics); in ParseKeyBlob()
Dsoft_keymaster_device.cpp315 keymaster_key_characteristics_t* characteristics = in BuildCharacteristics() local
318 if (characteristics) { in BuildCharacteristics()
319 hw_enforced.CopyToParamSet(&characteristics->hw_enforced); in BuildCharacteristics()
320 sw_enforced.CopyToParamSet(&characteristics->sw_enforced); in BuildCharacteristics()
322 return characteristics; in BuildCharacteristics()
685 keymaster_key_blob_t* key_blob, keymaster_key_characteristics_t** characteristics) { in generate_key() argument
698 return km1_dev->generate_key(km1_dev, params, key_blob, characteristics); in generate_key()
710 if (characteristics) { in generate_key()
717 *characteristics = BuildCharacteristics(response.enforced, response.unenforced); in generate_key()
718 if (!*characteristics) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in generate_key()
[all …]
Dkeymaster1_passthrough_context.cpp130 keymaster_key_characteristics_t* characteristics; in parseKeymaster1HwBlob() local
132 app_data_ptr, &characteristics); in parseKeymaster1HwBlob()
136 characteristics); in parseKeymaster1HwBlob()
138 hw_enforced->Reinitialize(characteristics->hw_enforced); in parseKeymaster1HwBlob()
139 sw_enforced->Reinitialize(characteristics->sw_enforced); in parseKeymaster1HwBlob()
Dsoft_keymaster_context.cpp352 keymaster_key_characteristics_t* characteristics; in ParseKeymaster1HwBlob() local
354 app_data_ptr, &characteristics); in ParseKeymaster1HwBlob()
357 characteristics); in ParseKeymaster1HwBlob()
361 hw_enforced->Reinitialize(characteristics->hw_enforced); in ParseKeymaster1HwBlob()
362 sw_enforced->Reinitialize(characteristics->sw_enforced); in ParseKeymaster1HwBlob()
/system/core/debuggerd/client/
Ddebuggerd_client_test.cpp43 std::vector<std::string> characteristics = in getThreadCount() local
45 if (std::find(characteristics.begin(), characteristics.end(), "embedded") in getThreadCount()
46 != characteristics.end()) { in getThreadCount()
/system/core/trusty/keymaster/include/trusty_keymaster/legacy/
Dtrusty_keymaster_device.h51 keymaster_key_characteristics_t* characteristics);
59 keymaster_key_characteristics_t* characteristics);
102 keymaster_key_characteristics_t* characteristics);
113 keymaster_key_characteristics_t* characteristics);
/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h132 keymaster_key_characteristics_t** characteristics);
143 keymaster_key_characteristics_t** characteristics);
181 keymaster_key_characteristics_t* characteristics);
192 keymaster_key_characteristics_t* characteristics);
/system/keymint/common/src/tag/
Dtests.rs26 for (characteristics, msg) in tests { in test_characteristics_invalid()
27 let result = crate::tag::characteristics_valid(&characteristics); in test_characteristics_invalid()
/system/keymint/common/src/bin/
Dkeyblob-cddl-dump.rs69 characteristics: vec![], in main()
82 characteristics: vec![], in main()
/system/media/camera/docs/
Dsession_characteristics_tags.mako29 * Mapping of session characteristics to the INFO_SESSION_CONFIGURATION_QUERY_VERSION value
DCameraCharacteristicsKeys.mako19 * Mapping from INFO_SESSION_CONFIGURATION_QUERY_VERSION to session characteristics key.
/system/sepolicy/private/
Disolated_compute_app.te9 ### TODO(b/266923392): Clean rules for isolated_compute_app characteristics
/system/extras/power_profile/camera_avg/Application/src/main/java/com/example/android/powerprofile/cameraavg/
DCameraAvgFragment.java507 CameraCharacteristics characteristics in setUpCameraOutputs() local
511 Integer facing = characteristics.get(CameraCharacteristics.LENS_FACING); in setUpCameraOutputs()
516 StreamConfigurationMap map = characteristics.get( in setUpCameraOutputs()
535 mSensorOrientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION); in setUpCameraOutputs()
594 Boolean available = characteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in setUpCameraOutputs()
/system/core/trusty/keymaster/include/trusty_keymaster/
DTrustyKeyMintDevice.h51 vector<KeyCharacteristics>* characteristics) override;
/system/keymint/common/src/keyblob/
Dkeyblob.cddl12 ; - CBOR-serialization of `EncryptedKeyBlob.characteristics`
29 characteristics: [* KeyCharacteristics],
/system/security/keystore2/src/km_compat/
Dlib.rs387 let characteristics = in test_get_key_characteristics() localVariable
390 assert!(characteristics.iter().any(|kc| kc.securityLevel == hw_info.securityLevel)); in test_get_key_characteristics()
391 let sec_level_enforced = &characteristics in test_get_key_characteristics()
/system/keymint/ta/src/
Dkeys.rs367 characteristics: chars in finish_keyblob_creation()
531 let keyblob::PlaintextKeyBlob { characteristics, key_material } = wrapping_key; in import_wrapped_key()
547 tag::characteristics_at(&characteristics, self.hw_info.security_level)?, in import_wrapped_key()
743 for chars in &mut keyblob.characteristics { in upgrade_key()
/system/keymint/tests/tests/
Dkeyblob_test.rs37 characteristics: vec![keymint::KeyCharacteristics { in test_encrypted_keyblob_roundtrip()
/system/keymint/tests/src/bin/
Dauth-keyblob-parse.rs175 characteristics: vec![ in process()
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintDevice.cpp147 vector<KeyCharacteristics>* characteristics) { in getKeyCharacteristics() argument
157 *characteristics = convertKeyCharacteristics(response.unenforced, response.enforced, in getKeyCharacteristics()
/system/security/keystore/
Dkeystore_cli_v2.cpp135 void PrintTags(const std::vector<ks2::Authorization>& characteristics, bool printHardwareEnforced) { in PrintTags() argument
136 for (const auto& a : characteristics) { in PrintTags()
143 void PrintKeyCharacteristics(const std::vector<ks2::Authorization>& characteristics) { in PrintKeyCharacteristics() argument
145 PrintTags(characteristics, true /* printHardwareEnforced */); in PrintKeyCharacteristics()
147 PrintTags(characteristics, false /* printHardwareEnforced */); in PrintKeyCharacteristics()
/system/security/keystore2/src/
Dlegacy_importer.rs920 let (characteristics, upgraded_blob) = upgrade_keyblob_if_required_with( in get_key_characteristics_without_app_data()
932 Ok((key_characteristics_to_internal(characteristics), upgraded_blob)) in get_key_characteristics_without_app_data()

12