Home
last modified time | relevance | path

Searched refs:key_blob (Results 1 – 12 of 12) sorted by relevance

/hardware/libhardware/tests/keymaster/
Dkeymaster_test.cpp367 uint8_t* key_blob; in TEST_P() local
371 sDevice->generate_keypair(sDevice, key_type, &params, &key_blob, &key_blob_length)) in TEST_P()
373 UniqueKey key(&sDevice, key_blob, key_blob_length); in TEST_P()
378 sDevice->get_keypair_public(sDevice, key_blob, key_blob_length, in TEST_P()
414 uint8_t* key_blob; in TEST_P() local
418 sDevice->generate_keypair(sDevice, key_type, &params, &key_blob, &key_blob_length)) in TEST_P()
420 UniqueKey key(&sDevice, key_blob, key_blob_length); in TEST_P()
425 sDevice->get_keypair_public(sDevice, key_blob, key_blob_length, in TEST_P()
458 uint8_t* key_blob; in TEST_P() local
462 sDevice->generate_keypair(sDevice, key_type, NULL, &key_blob, &key_blob_length)) in TEST_P()
[all …]
/hardware/libhardware/include/hardware/
Dkeymaster0.h57 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,
Dkeymaster1.h57 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,
Dkeymaster2.h114 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/
DKeymasterHidlTest.cpp67 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey() argument
69 EXPECT_NE(key_blob, nullptr) << "Key blob pointer must not be null. Test bug"; in GenerateKey()
70 EXPECT_EQ(0U, key_blob->size()) << "Key blob not empty before generating key. Test bug."; in GenerateKey()
80 *key_blob = hidl_key_blob; in GenerateKey()
86 EXPECT_EQ(0U, key_blob->size()); in GenerateKey()
98 const string& key_material, HidlBuf* key_blob, in ImportKey() argument
106 *key_blob = hidl_key_blob; in ImportKey()
112 EXPECT_EQ(0U, key_blob->size()); in ImportKey()
144 ErrorCode KeymasterHidlTest::ExportKey(KeyFormat format, const HidlBuf& key_blob, in ExportKey() argument
149 ->exportKey(format, key_blob, client_id, app_data, in ExportKey()
[all …]
DKeymasterHidlTest.h99 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob,
104 const string& key_material, HidlBuf* key_blob,
113 ErrorCode ExportKey(KeyFormat format, const HidlBuf& key_blob, const HidlBuf& client_id,
117 ErrorCode DeleteKey(HidlBuf* key_blob, bool keep_key_blob = false);
122 void CheckedDeleteKey(HidlBuf* key_blob, bool keep_key_blob = false);
125 void CheckGetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id,
127 ErrorCode GetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id,
129 ErrorCode GetCharacteristics(const HidlBuf& key_blob, KeyCharacteristics* key_characteristics);
133 ErrorCode Begin(KeyPurpose purpose, const HidlBuf& key_blob, const AuthorizationSet& in_params,
155 ErrorCode AttestKey(const HidlBuf& key_blob, const AuthorizationSet& attest_params,
[all …]
Dkeymaster_hidl_hal_test.cpp520 void CheckCharacteristics(const HidlBuf& key_blob, in CheckCharacteristics() argument
523 ASSERT_EQ(ErrorCode::OK, GetCharacteristics(key_blob, &retrieved_chars)); in CheckCharacteristics()
536 HidlBuf key_blob; in TEST_P() local
542 &key_blob, &key_characteristics)); in TEST_P()
544 ASSERT_GT(key_blob.size(), 0U); in TEST_P()
546 CheckCharacteristics(key_blob, key_characteristics); in TEST_P()
560 CheckedDeleteKey(&key_blob); in TEST_P()
571 HidlBuf key_blob; in TEST_P() local
578 &key_blob, &key_characteristics)); in TEST_P()
603 HidlBuf key_blob; in TEST_P() local
[all …]
/hardware/qcom/keymaster/
Dkeymaster_qcom.h107 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
Dkeymaster_qcom.cpp377 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/4.1/vts/functional/
DKeymaster4_1HidlTest.cpp28 auto Keymaster4_1HidlTest::ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, in ProcessMessage() argument
32 V4_0::ErrorCode result = Begin(operation, key_blob, in_params, &begin_out_params, &op_handle_); in ProcessMessage()
DKeymaster4_1HidlTest.h105 ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, const std::string& message,
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp454 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey() argument
456 EXPECT_NE(key_blob, nullptr); in GenerateKey()
458 EXPECT_EQ(0U, key_blob->size()); in GenerateKey()
466 *key_blob = hidl_key_blob; in GenerateKey()
472 EXPECT_EQ(0U, key_blob->size()); in GenerateKey()
484 const string& key_material, HidlBuf* key_blob, in ImportKey() argument
492 *key_blob = hidl_key_blob; in ImportKey()
498 EXPECT_EQ(0U, key_blob->size()); in ImportKey()
510 ErrorCode ExportKey(KeyFormat format, const HidlBuf& key_blob, const HidlBuf& client_id, in ExportKey() argument
515 ->exportKey(format, key_blob, client_id, app_data, in ExportKey()
[all …]