Searched refs:upgraded_key (Results 1 – 10 of 10) sorted by relevance
/system/keymaster/ |
D | android_keymaster_messages_test.cpp | 598 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()
|
D | android_keymaster.cpp | 413 KeymasterKeyBlob upgraded_key; in UpgradeKey() local 415 request.upgrade_params, &upgraded_key); in UpgradeKey() 418 response->upgraded_key = upgraded_key.release(); in UpgradeKey()
|
D | android_keymaster_messages.cpp | 549 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()
|
D | soft_keymaster_device.cpp | 1107 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()
|
D | soft_keymaster_context.cpp | 470 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob() 510 upgraded_key); in UpgradeKeyBlob()
|
/system/keymaster/include/keymaster/ |
D | keymaster_context.h | 115 KeymasterKeyBlob* upgraded_key) const = 0;
|
D | soft_keymaster_context.h | 73 KeymasterKeyBlob* upgraded_key) const override;
|
D | soft_keymaster_device.h | 214 keymaster_key_blob_t* upgraded_key);
|
D | android_keymaster_messages.h | 646 upgraded_key = {nullptr, 0}; in KeymasterResponse() 654 keymaster_key_blob_t upgraded_key; member
|
/system/security/keystore/ |
D | key_store_service.cpp | 1550 keymaster_key_blob_t upgraded_key; in upgradeKeyBlob() local 1551 int32_t rc = dev->upgrade_key(dev, &key, ¶ms, &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()
|