Lines Matching refs:HidlBuf
67 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey()
77 [&](ErrorCode hidl_error, const HidlBuf& hidl_key_blob, in GenerateKey()
98 const string& key_material, HidlBuf* key_blob, in ImportKey()
102 ->importKey(key_desc.hidl_data(), format, HidlBuf(key_material), in ImportKey()
103 [&](ErrorCode hidl_error, const HidlBuf& hidl_key_blob, in ImportKey()
131 ->importWrappedKey(HidlBuf(wrapped_key), key_blob_, HidlBuf(masking_key), in ImportWrappedKey()
134 [&](ErrorCode hidl_error, const HidlBuf& hidl_key_blob, in ImportWrappedKey()
144 ErrorCode KeymasterHidlTest::ExportKey(KeyFormat format, const HidlBuf& key_blob, in ExportKey()
145 const HidlBuf& client_id, const HidlBuf& app_data, in ExportKey()
146 HidlBuf* key_material) { in ExportKey()
150 [&](ErrorCode hidl_error_code, const HidlBuf& hidl_key_material) { in ExportKey()
162 ErrorCode KeymasterHidlTest::ExportKey(KeyFormat format, HidlBuf* key_material) { in ExportKey()
163 HidlBuf client_id, app_data; in ExportKey()
167 ErrorCode KeymasterHidlTest::DeleteKey(HidlBuf* key_blob, bool keep_key_blob) { in DeleteKey()
169 if (!keep_key_blob) *key_blob = HidlBuf(); in DeleteKey()
183 void KeymasterHidlTest::CheckedDeleteKey(HidlBuf* key_blob, bool keep_key_blob) { in CheckedDeleteKey()
192 void KeymasterHidlTest::CheckGetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id, in CheckGetCharacteristics()
193 const HidlBuf& app_data, in CheckGetCharacteristics()
195 HidlBuf empty_buf = {}; in CheckGetCharacteristics()
219 ErrorCode KeymasterHidlTest::GetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id, in GetCharacteristics()
220 const HidlBuf& app_data, in GetCharacteristics()
234 ErrorCode KeymasterHidlTest::GetCharacteristics(const HidlBuf& key_blob, in GetCharacteristics()
236 HidlBuf client_id, app_data; in GetCharacteristics()
247 ErrorCode KeymasterHidlTest::Begin(KeyPurpose purpose, const HidlBuf& key_blob, in Begin()
290 ->update(op_handle, in_params.hidl_data(), HidlBuf(input), HardwareAuthToken(), in Update()
294 const HidlBuf& hidl_output) { in Update()
320 ->finish(op_handle, in_params.hidl_data(), HidlBuf(input), HidlBuf(signature), in Finish()
323 const HidlBuf& hidl_output) { in Finish()
375 ErrorCode KeymasterHidlTest::AttestKey(const HidlBuf& key_blob, in AttestKey()
399 string KeymasterHidlTest::ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, in ProcessMessage()
425 string KeymasterHidlTest::SignMessage(const HidlBuf& key_blob, const string& message, in SignMessage()
502 void KeymasterHidlTest::VerifyMessage(const HidlBuf& key_blob, const string& message, in VerifyMessage()
533 string KeymasterHidlTest::EncryptMessage(const HidlBuf& key_blob, const string& message, in EncryptMessage()
565 PaddingMode padding, HidlBuf* iv_out) { in EncryptMessage()
578 PaddingMode padding, const HidlBuf& iv_in) { in EncryptMessage()
591 const HidlBuf& iv_in) { in EncryptMessage()
603 string KeymasterHidlTest::DecryptMessage(const HidlBuf& key_blob, const string& ciphertext, in DecryptMessage()
619 PaddingMode padding_mode, const HidlBuf& iv) { in DecryptMessage()
628 std::pair<ErrorCode, HidlBuf> KeymasterHidlTest::UpgradeKey(const HidlBuf& key_blob) { in UpgradeKey()
629 std::pair<ErrorCode, HidlBuf> retval; in UpgradeKey()