/hardware/libhardware/tests/keymaster/ |
D | keymaster_test.cpp | 401 uint8_t* key_blob; in TEST_P() local 405 sDevice->generate_keypair(sDevice, key_type, ¶ms, &key_blob, &key_blob_length)) in TEST_P() 407 UniqueKey key(&sDevice, key_blob, key_blob_length); in TEST_P() 412 sDevice->get_keypair_public(sDevice, key_blob, key_blob_length, in TEST_P() 448 uint8_t* key_blob; in TEST_P() local 452 sDevice->generate_keypair(sDevice, key_type, ¶ms, &key_blob, &key_blob_length)) in TEST_P() 454 UniqueKey key(&sDevice, key_blob, key_blob_length); in TEST_P() 459 sDevice->get_keypair_public(sDevice, key_blob, key_blob_length, in TEST_P() 492 uint8_t* key_blob; in TEST_P() local 496 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/interfaces/keymaster/4.0/vts/functional/ |
D | KeymasterHidlTest.h | 108 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, 113 const string& key_material, HidlBuf* key_blob, 122 ErrorCode ExportKey(KeyFormat format, const HidlBuf& key_blob, const HidlBuf& client_id, 126 ErrorCode DeleteKey(HidlBuf* key_blob, bool keep_key_blob = false); 131 void CheckedDeleteKey(HidlBuf* key_blob, bool keep_key_blob = false); 137 void CheckGetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id, 139 ErrorCode GetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id, 141 ErrorCode GetCharacteristics(const HidlBuf& key_blob, KeyCharacteristics* key_characteristics); 143 ErrorCode Begin(KeyPurpose purpose, const HidlBuf& key_blob, const AuthorizationSet& in_params, 165 ErrorCode AttestKey(const HidlBuf& key_blob, const AuthorizationSet& attest_params, [all …]
|
D | KeymasterHidlTest.cpp | 85 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey() argument 87 EXPECT_NE(key_blob, nullptr) << "Key blob pointer must not be null. Test bug"; in GenerateKey() 88 EXPECT_EQ(0U, key_blob->size()) << "Key blob not empty before generating key. Test bug."; in GenerateKey() 98 *key_blob = hidl_key_blob; in GenerateKey() 104 EXPECT_EQ(0U, key_blob->size()); in GenerateKey() 116 const string& key_material, HidlBuf* key_blob, in ImportKey() argument 124 *key_blob = hidl_key_blob; in ImportKey() 130 EXPECT_EQ(0U, key_blob->size()); in ImportKey() 162 ErrorCode KeymasterHidlTest::ExportKey(KeyFormat format, const HidlBuf& key_blob, in ExportKey() argument 167 ->exportKey(format, key_blob, client_id, app_data, in ExportKey() [all …]
|
D | keymaster_hidl_hal_test.cpp | 510 void CheckCharacteristics(const HidlBuf& key_blob, in CheckCharacteristics() argument 513 ASSERT_EQ(ErrorCode::OK, GetCharacteristics(key_blob, &retrieved_chars)); in CheckCharacteristics() 526 HidlBuf key_blob; in TEST_F() local 532 &key_blob, &key_characteristics)); in TEST_F() 534 ASSERT_GT(key_blob.size(), 0U); in TEST_F() 536 CheckCharacteristics(key_blob, key_characteristics); in TEST_F() 550 CheckedDeleteKey(&key_blob); in TEST_F() 579 HidlBuf key_blob; in TEST_F() local 585 &key_blob, &key_characteristics)); in TEST_F() 610 HidlBuf key_blob; in TEST_F() local [all …]
|
/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/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 472 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey() argument 474 EXPECT_NE(key_blob, nullptr); in GenerateKey() 476 EXPECT_EQ(0U, key_blob->size()); in GenerateKey() 484 *key_blob = hidl_key_blob; in GenerateKey() 490 EXPECT_EQ(0U, key_blob->size()); in GenerateKey() 502 const string& key_material, HidlBuf* key_blob, in ImportKey() argument 510 *key_blob = hidl_key_blob; in ImportKey() 516 EXPECT_EQ(0U, key_blob->size()); in ImportKey() 528 ErrorCode ExportKey(KeyFormat format, const HidlBuf& key_blob, const HidlBuf& client_id, in ExportKey() argument 533 ->exportKey(format, key_blob, client_id, app_data, in ExportKey() [all …]
|