Home
last modified time | relevance | path

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

/system/keymaster/
Dandroid_keymaster_messages_test.cpp598 req.upgraded_key.key_material = dup_array(TEST_DATA); in TEST()
599 req.upgraded_key.key_material_size = array_length(TEST_DATA); in TEST()
603 EXPECT_EQ(req.upgraded_key.key_material_size, deserialized->upgraded_key.key_material_size); in TEST()
604 EXPECT_EQ(0, memcmp(req.upgraded_key.key_material, deserialized->upgraded_key.key_material, in TEST()
605 req.upgraded_key.key_material_size)); in TEST()
Dandroid_keymaster.cpp413 KeymasterKeyBlob upgraded_key; in UpgradeKey() local
415 request.upgrade_params, &upgraded_key); in UpgradeKey()
418 response->upgraded_key = upgraded_key.release(); in UpgradeKey()
Dandroid_keymaster_messages.cpp549 delete[] upgraded_key.key_material; in ~UpgradeKeyResponse()
553 return key_blob_size(upgraded_key); in NonErrorSerializedSize()
557 return serialize_key_blob(upgraded_key, buf, end); in NonErrorSerialize()
561 return deserialize_key_blob(&upgraded_key, buf_ptr, end); in NonErrorDeserialize()
Dsoft_keymaster_device.cpp1107 keymaster_key_blob_t* upgraded_key) { in upgrade_key() argument
1111 if (!upgraded_key) in upgrade_key()
1126 upgraded_key->key_material_size = response.upgraded_key.key_material_size; in upgrade_key()
1127 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(upgraded_key->key_material_size)); in upgrade_key()
1130 memcpy(tmp, response.upgraded_key.key_material, response.upgraded_key.key_material_size); in upgrade_key()
1131 upgraded_key->key_material = tmp; in upgrade_key()
Dsoft_keymaster_context.cpp470 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob()
510 upgraded_key); in UpgradeKeyBlob()
/system/keymaster/include/keymaster/
Dkeymaster_context.h115 KeymasterKeyBlob* upgraded_key) const = 0;
Dsoft_keymaster_context.h73 KeymasterKeyBlob* upgraded_key) const override;
Dsoft_keymaster_device.h214 keymaster_key_blob_t* upgraded_key);
Dandroid_keymaster_messages.h646 upgraded_key = {nullptr, 0}; in KeymasterResponse()
654 keymaster_key_blob_t upgraded_key; member
/system/security/keystore/
Dkey_store_service.cpp1550 keymaster_key_blob_t upgraded_key; in upgradeKeyBlob() local
1551 int32_t rc = dev->upgrade_key(dev, &key, &params, &upgraded_key); in upgradeKeyBlob()
1556 const_cast<uint8_t*>(upgraded_key.key_material)); in upgradeKeyBlob()
1564 Blob newBlob(upgraded_key.key_material, upgraded_key.key_material_size, nullptr /* info */, in upgradeKeyBlob()