Home
last modified time | relevance | path

Searched refs:upgraded_key (Results 1 – 24 of 24) sorted by relevance

/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp66 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
67 if (!upgraded_key) return KM_ERROR_UNEXPECTED_NULL_POINTER; in UpgradeKeyBlob()
68 *upgraded_key = {}; in UpgradeKeyBlob()
69 return device_->upgrade_key(device_, &key_to_upgrade, &upgrade_params, upgraded_key); in UpgradeKeyBlob()
Dkeymaster1_passthrough_context.cpp104 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
115 return UpgradeSoftKeyBlob(key, os_version_, os_patchlevel_, upgrade_params, upgraded_key); in UpgradeKeyBlob()
Dsoft_keymaster_context.cpp201 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
223 return UpgradeSoftKeyBlob(key, os_version_, os_patchlevel_, upgrade_params, upgraded_key); in UpgradeKeyBlob()
Dsoft_keymaster_device.cpp1043 keymaster_key_blob_t* upgraded_key) { in upgrade_key() argument
1046 if (!upgraded_key) return KM_ERROR_OUTPUT_PARAMETER_NULL; in upgrade_key()
1059 upgraded_key->key_material_size = response.upgraded_key.key_material_size; in upgrade_key()
1060 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(upgraded_key->key_material_size)); in upgrade_key()
1062 memcpy(tmp, response.upgraded_key.key_material, response.upgraded_key.key_material_size); in upgrade_key()
1063 upgraded_key->key_material = tmp; in upgrade_key()
Dpure_soft_keymaster_context.cpp266 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
272 boot_patchlevel_, upgrade_params, upgraded_key); in UpgradeKeyBlob()
/system/keymaster/include/keymaster/key_blob_utils/
Dsoftware_keyblobs.h68 KeymasterKeyBlob* upgraded_key);
75 KeymasterKeyBlob* upgraded_key);
/system/core/trusty/keymaster/include/trusty_keymaster/legacy/
Dtrusty_keymaster_device.h69 keymaster_key_blob_t* upgraded_key);
127 keymaster_key_blob_t* upgraded_key);
/system/keymaster/key_blob_utils/
Dsoftware_keyblobs.cpp408 KeymasterKeyBlob* upgraded_key) { in UpgradeSoftKeyBlob() argument
412 upgrade_params, upgraded_key); in UpgradeSoftKeyBlob()
420 KeymasterKeyBlob* upgraded_key) { in FullUpgradeSoftKeyBlob() argument
458 key->sw_enforced(), upgraded_key); in FullUpgradeSoftKeyBlob()
/system/keymaster/include/keymaster/contexts/
Dkeymaster2_passthrough_context.h67 KeymasterKeyBlob* upgraded_key) const override;
Dkeymaster1_passthrough_context.h73 KeymasterKeyBlob* upgraded_key) const override;
Dsoft_keymaster_context.h73 KeymasterKeyBlob* upgraded_key) const override;
Dpure_soft_keymaster_context.h68 KeymasterKeyBlob* upgraded_key) const override;
/system/keymaster/include/keymaster/
Dkeymaster_context.h116 KeymasterKeyBlob* upgraded_key) const = 0;
Dsoft_keymaster_device.h206 keymaster_key_blob_t* upgraded_key);
Dandroid_keymaster_messages.h771 upgraded_key = {nullptr, 0}; in UpgradeKeyResponse()
779 keymaster_key_blob_t upgraded_key; member
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp850 req.upgraded_key.key_material = dup_array(TEST_DATA); in TEST()
851 req.upgraded_key.key_material_size = array_length(TEST_DATA); in TEST()
855 EXPECT_EQ(req.upgraded_key.key_material_size, deserialized->upgraded_key.key_material_size); in TEST()
856 EXPECT_EQ(0, memcmp(req.upgraded_key.key_material, deserialized->upgraded_key.key_material, in TEST()
857 req.upgraded_key.key_material_size)); in TEST()
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp824 KeymasterKeyBlob upgraded_key; in UpgradeKey() local
826 request.upgrade_params, &upgraded_key); in UpgradeKey()
828 response->upgraded_key = upgraded_key.release(); in UpgradeKey()
Dandroid_keymaster_messages.cpp781 delete[] upgraded_key.key_material; in ~UpgradeKeyResponse()
785 return key_blob_size(upgraded_key); in NonErrorSerializedSize()
789 return serialize_key_blob(upgraded_key, buf, end); in NonErrorSerialize()
793 return deserialize_key_blob(&upgraded_key, buf_ptr, end); in NonErrorDeserialize()
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintDevice.cpp237 *keyBlob = kmBlob2vector(response.upgraded_key); in upgradeKey()
/system/keymaster/ng/
DAndroidKeyMintDevice.cpp382 *keyBlob = kmBlob2vector(response.upgraded_key); in upgradeKey()
DAndroidKeymaster3Device.cpp398 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey()
DAndroidKeymaster4Device.cpp464 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp346 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp487 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey()