Home
last modified time | relevance | path

Searched refs:deserialized (Results 1 – 2 of 2) sorted by relevance

/system/keymaster/
Dandroid_keymaster_messages_test.cpp43 Message* deserialized = new Message(ver); in round_trip() local
45 EXPECT_TRUE(deserialized->Deserialize(&p, p + size)); in round_trip()
47 return deserialized; in round_trip()
71 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(ver, msg, 5)); in TEST() local
80 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(ver, msg, 4)); in TEST() local
89 UniquePtr<SupportedByAlgorithmRequest> deserialized(round_trip(ver, req, 4)); in TEST() local
90 EXPECT_EQ(KM_ALGORITHM_EC, deserialized->algorithm); in TEST()
100 UniquePtr<SupportedByAlgorithmAndPurposeRequest> deserialized(round_trip(ver, req, 8)); in TEST() local
101 EXPECT_EQ(KM_ALGORITHM_EC, deserialized->algorithm); in TEST()
102 EXPECT_EQ(KM_PURPOSE_DECRYPT, deserialized->purpose); in TEST()
[all …]
Dauthorization_set_test.cpp167 AuthorizationSet deserialized(buf.get(), size); in TEST() local
169 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
170 EXPECT_EQ(set, deserialized); in TEST()
172 int pos = deserialized.find(TAG_APPLICATION_ID); in TEST()
174 EXPECT_EQ(KM_TAG_APPLICATION_ID, deserialized[pos].tag); in TEST()
175 EXPECT_EQ(6U, deserialized[pos].blob.data_length); in TEST()
176 EXPECT_EQ(0, memcmp(deserialized[pos].blob.data, "my_app", 6)); in TEST()
195 AuthorizationSet deserialized; in TEST() local
197 EXPECT_TRUE(deserialized.Deserialize(&p, p + size)); in TEST()
200 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
[all …]