• Home
  • Raw
  • Download

Lines Matching refs:key_blob

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()
185 ErrorCode KeymasterHidlTest::DeleteKey(HidlBuf* key_blob, bool keep_key_blob) { in DeleteKey() argument
186 auto rc = keymaster_->deleteKey(*key_blob); in DeleteKey()
187 if (!keep_key_blob) *key_blob = HidlBuf(); in DeleteKey()
201 void KeymasterHidlTest::CheckedDeleteKey(HidlBuf* key_blob, bool keep_key_blob) { in CheckedDeleteKey() argument
202 auto rc = DeleteKey(key_blob, keep_key_blob); in CheckedDeleteKey()
226 void KeymasterHidlTest::CheckGetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id, in CheckGetCharacteristics() argument
231 GetCharacteristics(key_blob, client_id, app_data, key_characteristics)); in CheckGetCharacteristics()
236 GetCharacteristics(key_blob, empty_buf, app_data, key_characteristics)); in CheckGetCharacteristics()
241 GetCharacteristics(key_blob, client_id, empty_buf, key_characteristics)); in CheckGetCharacteristics()
246 GetCharacteristics(key_blob, empty_buf, empty_buf, key_characteristics)); in CheckGetCharacteristics()
251 ErrorCode KeymasterHidlTest::GetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id, in GetCharacteristics() argument
258 key_blob, client_id, app_data, in GetCharacteristics()
266 ErrorCode KeymasterHidlTest::GetCharacteristics(const HidlBuf& key_blob, in GetCharacteristics() argument
269 return GetCharacteristics(key_blob, client_id, app_data, key_characteristics); in GetCharacteristics()
272 ErrorCode KeymasterHidlTest::Begin(KeyPurpose purpose, const HidlBuf& key_blob, in Begin() argument
279 ->begin(purpose, key_blob, in_params.hidl_data(), HardwareAuthToken(), in Begin()
400 ErrorCode KeymasterHidlTest::AttestKey(const HidlBuf& key_blob, in AttestKey() argument
406 key_blob, attest_params.hidl_data(), in AttestKey()
424 string KeymasterHidlTest::ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, in ProcessMessage() argument
429 EXPECT_EQ(ErrorCode::OK, Begin(operation, key_blob, in_params, &begin_out_params, &op_handle_)); in ProcessMessage()
450 string KeymasterHidlTest::SignMessage(const HidlBuf& key_blob, const string& message, in SignMessage() argument
454 string signature = ProcessMessage(key_blob, KeyPurpose::SIGN, message, params, &out_params); in SignMessage()
527 void KeymasterHidlTest::VerifyMessage(const HidlBuf& key_blob, const string& message, in VerifyMessage() argument
532 Begin(KeyPurpose::VERIFY, key_blob, params, &begin_out_params, &op_handle_)); in VerifyMessage()
558 string KeymasterHidlTest::EncryptMessage(const HidlBuf& key_blob, const string& message, in EncryptMessage() argument
562 return ProcessMessage(key_blob, KeyPurpose::ENCRYPT, message, in_params, out_params); in EncryptMessage()
614 string KeymasterHidlTest::DecryptMessage(const HidlBuf& key_blob, const string& ciphertext, in DecryptMessage() argument
619 ProcessMessage(key_blob, KeyPurpose::DECRYPT, ciphertext, params, &out_params); in DecryptMessage()
639 std::pair<ErrorCode, HidlBuf> KeymasterHidlTest::UpgradeKey(const HidlBuf& key_blob) { in UpgradeKey() argument
641 keymaster_->upgradeKey(key_blob, hidl_vec<KeyParameter>(), in UpgradeKey()