/hardware/libhardware/tests/keymaster/ |
D | keymaster_test.cpp | 402 uint8_t* key_blob; in TEST_P() local 406 sDevice->generate_keypair(sDevice, key_type, ¶ms, &key_blob, &key_blob_length)) in TEST_P() 408 UniqueKey key(&sDevice, key_blob, key_blob_length); in TEST_P() 413 sDevice->get_keypair_public(sDevice, key_blob, key_blob_length, in TEST_P() 449 uint8_t* key_blob; in TEST_P() local 453 sDevice->generate_keypair(sDevice, key_type, ¶ms, &key_blob, &key_blob_length)) in TEST_P() 455 UniqueKey key(&sDevice, key_blob, key_blob_length); in TEST_P() 460 sDevice->get_keypair_public(sDevice, key_blob, key_blob_length, in TEST_P() 493 uint8_t* key_blob; in TEST_P() local 497 sDevice->generate_keypair(sDevice, key_type, NULL, &key_blob, &key_blob_length)) in TEST_P() [all …]
|
/hardware/libhardware/include/hardware/ |
D | keymaster0.h | 57 uint8_t** key_blob, size_t* key_blob_length); 69 uint8_t** key_blob, size_t* key_blob_length); 79 const uint8_t* key_blob, const size_t key_blob_length, 91 const uint8_t* key_blob, const size_t key_blob_length); 112 const uint8_t* key_blob, const size_t key_blob_length, 124 const uint8_t* key_blob, const size_t key_blob_length,
|
D | keymaster1.h | 57 const void* key_params, uint8_t** key_blob, size_t* key_blob_length); 67 const size_t key_length, uint8_t** key_blob, size_t* key_blob_length); 76 int (*get_keypair_public)(const struct keymaster1_device* dev, const uint8_t* key_blob, 88 int (*delete_keypair)(const struct keymaster1_device* dev, const uint8_t* key_blob, 109 const uint8_t* key_blob, const size_t key_blob_length, const uint8_t* data, 119 const uint8_t* key_blob, const size_t key_blob_length, 284 keymaster_key_blob_t* key_blob, 310 const keymaster_key_blob_t* key_blob, 361 keymaster_key_blob_t* key_blob,
|
D | keymaster2.h | 114 keymaster_key_blob_t* key_blob, 140 const keymaster_key_blob_t* key_blob, 190 keymaster_key_blob_t* key_blob,
|
/hardware/qcom/keymaster/ |
D | keymaster_qcom.h | 107 qcom_km_key_blob_t key_blob; member 142 qcom_km_key_blob_t key_blob; member 162 qcom_km_key_blob_t key_blob; member 201 qcom_km_key_blob_t key_blob; member
|
D | keymaster_qcom.cpp | 377 memcpy(p, (unsigned char *)(&resp->key_blob), resp->key_blob_len); in qcom_km_generate_keypair() 460 memcpy(p, (unsigned char *)(&resp->key_blob), resp->key_blob_len); in qcom_km_import_keypair() 527 memcpy((unsigned char *)(&send_cmd->key_blob), keyBlob, keyBlobLength); in qcom_km_sign_data() 627 memcpy((unsigned char *)(&send_cmd->key_blob), keyBlob, keyBlobLength); in qcom_km_verify_data()
|
/hardware/interfaces/keymaster/3.0/default/ |
D | KeymasterDevice.cpp | 392 keymaster_key_blob_t key_blob{nullptr, 0}; in generateKey() local 398 auto rc = keymaster_device_->generate_key(keymaster_device_, &kmParams, &key_blob, in generateKey() 403 resultKeyBlob = kmBlob2hidlVec(key_blob); in generateKey() 412 if (key_blob.key_material) free(const_cast<uint8_t*>(key_blob.key_material)); in generateKey() 456 keymaster_key_blob_t key_blob{nullptr, 0}; in importKey() local 464 &key_blob, &key_characteristics); in importKey() 469 resultKeyBlob = kmBlob2hidlVec(key_blob); in importKey() 477 if (key_blob.key_material) free(const_cast<uint8_t*>(key_blob.key_material)); in importKey() 582 keymaster_key_blob_t key_blob{nullptr, 0}; in upgradeKey() local 588 &kmUpgradeParams, &key_blob); in upgradeKey() [all …]
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 427 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey() argument 429 EXPECT_NE(key_blob, nullptr); in GenerateKey() 431 EXPECT_EQ(0U, key_blob->size()); in GenerateKey() 439 *key_blob = hidl_key_blob; in GenerateKey() 445 EXPECT_EQ(0U, key_blob->size()); in GenerateKey() 457 const string& key_material, HidlBuf* key_blob, in ImportKey() argument 465 *key_blob = hidl_key_blob; in ImportKey() 471 EXPECT_EQ(0U, key_blob->size()); in ImportKey() 483 ErrorCode ExportKey(KeyFormat format, const HidlBuf& key_blob, const HidlBuf& client_id, in ExportKey() argument 488 ->exportKey(format, key_blob, client_id, app_data, in ExportKey() [all …]
|