Home
last modified time | relevance | path

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

/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp63 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
64 if (!upgraded_key) return KM_ERROR_UNEXPECTED_NULL_POINTER; in UpgradeKeyBlob()
65 *upgraded_key = {}; in UpgradeKeyBlob()
66 return device_->upgrade_key(device_, &key_to_upgrade, &upgrade_params, upgraded_key); in UpgradeKeyBlob()
Dkeymaster1_passthrough_context.cpp95 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
107 return UpgradeSoftKeyBlob(key, os_version_, os_patchlevel_, upgrade_params, upgraded_key); in UpgradeKeyBlob()
Dsoft_keymaster_context.cpp217 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
240 return UpgradeSoftKeyBlob(key, os_version_, os_patchlevel_, upgrade_params, upgraded_key); in UpgradeKeyBlob()
Dsoft_keymaster_device.cpp1128 keymaster_key_blob_t* upgraded_key) { in upgrade_key() argument
1132 if (!upgraded_key) in upgrade_key()
1147 upgraded_key->key_material_size = response.upgraded_key.key_material_size; in upgrade_key()
1148 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(upgraded_key->key_material_size)); in upgrade_key()
1151 memcpy(tmp, response.upgraded_key.key_material, response.upgraded_key.key_material_size); in upgrade_key()
1152 upgraded_key->key_material = tmp; in upgrade_key()
Dpure_soft_keymaster_context.cpp167 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
173 return UpgradeSoftKeyBlob(key, os_version_, os_patchlevel_, upgrade_params, upgraded_key); in UpgradeKeyBlob()
/system/keymaster/include/keymaster/key_blob_utils/
Dsoftware_keyblobs.h60 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/include/keymaster/contexts/
Dkeymaster2_passthrough_context.h64 KeymasterKeyBlob* upgraded_key) const override;
Dkeymaster1_passthrough_context.h71 KeymasterKeyBlob* upgraded_key) const override;
Dpure_soft_keymaster_context.h63 KeymasterKeyBlob* upgraded_key) const override;
Dsoft_keymaster_context.h75 KeymasterKeyBlob* upgraded_key) const override;
/system/keymaster/include/keymaster/
Dkeymaster_context.h97 KeymasterKeyBlob* upgraded_key) const = 0;
Dsoft_keymaster_device.h214 keymaster_key_blob_t* upgraded_key);
Dandroid_keymaster_messages.h661 upgraded_key = {nullptr, 0}; in KeymasterResponse()
669 keymaster_key_blob_t upgraded_key; member
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp617 req.upgraded_key.key_material = dup_array(TEST_DATA); in TEST()
618 req.upgraded_key.key_material_size = array_length(TEST_DATA); in TEST()
622 EXPECT_EQ(req.upgraded_key.key_material_size, deserialized->upgraded_key.key_material_size); in TEST()
623 EXPECT_EQ(0, memcmp(req.upgraded_key.key_material, deserialized->upgraded_key.key_material, in TEST()
624 req.upgraded_key.key_material_size)); in TEST()
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp426 KeymasterKeyBlob upgraded_key; in UpgradeKey() local
428 request.upgrade_params, &upgraded_key); in UpgradeKey()
431 response->upgraded_key = upgraded_key.release(); in UpgradeKey()
Dandroid_keymaster_messages.cpp567 delete[] upgraded_key.key_material; in ~UpgradeKeyResponse()
571 return key_blob_size(upgraded_key); in NonErrorSerializedSize()
575 return serialize_key_blob(upgraded_key, buf, end); in NonErrorSerialize()
579 return deserialize_key_blob(&upgraded_key, buf_ptr, end); in NonErrorDeserialize()
/system/keymaster/key_blob_utils/
Dsoftware_keyblobs.cpp313 KeymasterKeyBlob* upgraded_key) { in UpgradeSoftKeyBlob() argument
344 key->sw_enforced(), upgraded_key); in UpgradeSoftKeyBlob()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp345 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp389 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey()
DAndroidKeymaster4Device.cpp461 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp486 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey()