• Home
  • Raw
  • Download

Lines Matching refs:rsp

105         GenerateKeyResponse rsp(ver);  in TEST()  local
106 rsp.error = KM_ERROR_OK; in TEST()
107 rsp.key_blob.key_material = dup_array(TEST_DATA); in TEST()
108 rsp.key_blob.key_material_size = array_length(TEST_DATA); in TEST()
109 rsp.enforced.Reinitialize(params, array_length(params)); in TEST()
111 rsp.certificate_chain = CertificateChain(3); in TEST()
112 rsp.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST()
113 rsp.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST()
114 rsp.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()
118 deserialized.reset(round_trip(ver, rsp, 109)); in TEST()
120 deserialized.reset(round_trip(ver, rsp, 134)); in TEST()
124 EXPECT_EQ(deserialized->enforced, rsp.enforced); in TEST()
125 EXPECT_EQ(deserialized->unenforced, rsp.unenforced); in TEST()
145 GenerateKeyResponse rsp(ver); in TEST() local
146 rsp.error = KM_ERROR_UNSUPPORTED_ALGORITHM; in TEST()
147 rsp.key_blob.key_material = dup_array(TEST_DATA); in TEST()
148 rsp.key_blob.key_material_size = array_length(TEST_DATA); in TEST()
149 rsp.enforced.Reinitialize(params, array_length(params)); in TEST()
151 UniquePtr<GenerateKeyResponse> deserialized(round_trip(ver, rsp, 4)); in TEST()
171 GenerateRkpKeyResponse rsp(ver); in TEST() local
172 rsp.error = KM_ERROR_OK; in TEST()
173 rsp.key_blob.key_material = dup_array(TEST_DATA); in TEST()
174 rsp.key_blob.key_material_size = array_length(TEST_DATA); in TEST()
175 rsp.maced_public_key.data = dup_array(TEST_DATA); in TEST()
176 rsp.maced_public_key.data_length = array_length(TEST_DATA); in TEST()
179 deserialized.reset(round_trip(ver, rsp, 34)); in TEST()
182 EXPECT_EQ(deserialized->key_blob.key_material_size, rsp.key_blob.key_material_size); in TEST()
183 EXPECT_EQ(0, std::memcmp(deserialized->key_blob.key_material, rsp.key_blob.key_material, in TEST()
185 EXPECT_EQ(deserialized->maced_public_key.data_length, rsp.maced_public_key.data_length); in TEST()
186 EXPECT_EQ(0, std::memcmp(deserialized->maced_public_key.data, rsp.maced_public_key.data, in TEST()
225 GenerateCsrResponse rsp(ver); in TEST() local
226 rsp.error = KM_ERROR_OK; in TEST()
227 rsp.keys_to_sign_mac.data = dup_array(TEST_DATA); in TEST()
228 rsp.keys_to_sign_mac.data_length = array_length(TEST_DATA); in TEST()
229 rsp.device_info_blob.data = dup_array(TEST_DATA); in TEST()
230 rsp.device_info_blob.data_length = array_length(TEST_DATA); in TEST()
231 rsp.protected_data_blob.data = dup_array(TEST_DATA); in TEST()
232 rsp.protected_data_blob.data_length = array_length(TEST_DATA); in TEST()
235 deserialized.reset(round_trip(ver, rsp, 49)); in TEST()
238 EXPECT_EQ(deserialized->keys_to_sign_mac.data_length, rsp.keys_to_sign_mac.data_length); in TEST()
239 EXPECT_EQ(0, std::memcmp(deserialized->keys_to_sign_mac.data, rsp.keys_to_sign_mac.data, in TEST()
241 EXPECT_EQ(deserialized->device_info_blob.data_length, rsp.device_info_blob.data_length); in TEST()
242 EXPECT_EQ(0, std::memcmp(deserialized->device_info_blob.data, rsp.device_info_blob.data, in TEST()
245 rsp.protected_data_blob.data_length); in TEST()
247 std::memcmp(deserialized->protected_data_blob.data, rsp.protected_data_blob.data, in TEST()
680 ConfigureResponse rsp(ver); in TEST() local
681 UniquePtr<ConfigureResponse> deserialized(round_trip(ver, rsp, 4)); in TEST()
697 ConfigureVendorPatchlevelResponse rsp(ver); in TEST() local
698 UniquePtr<ConfigureVendorPatchlevelResponse> deserialized(round_trip(ver, rsp, 4)); in TEST()
714 ConfigureBootPatchlevelResponse rsp(ver); in TEST() local
715 UniquePtr<ConfigureBootPatchlevelResponse> deserialized(round_trip(ver, rsp, 4)); in TEST()