Home
last modified time | relevance | path

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

/system/keymaster/tests/
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 …]
/system/security/keystore/tests/
Dverification_token_seralization_test.cpp42 optional<VerificationToken> deserialized = deserializeVerificationToken(serialized.value()); in TEST() local
43 ASSERT_TRUE(deserialized.has_value()); in TEST()
44 ASSERT_EQ(token.challenge, deserialized.value().challenge); in TEST()
45 ASSERT_EQ(token.timestamp, deserialized.value().timestamp); in TEST()
46 ASSERT_EQ(token.securityLevel, deserialized.value().securityLevel); in TEST()
47 ASSERT_EQ(0u, deserialized.value().parametersVerified.size()); in TEST()
48 ASSERT_EQ(token.mac, deserialized.value().mac); in TEST()
59 optional<VerificationToken> deserialized = deserializeVerificationToken(serialized.value()); in TEST() local
60 ASSERT_TRUE(deserialized.has_value()); in TEST()
61 ASSERT_EQ(token.challenge, deserialized.value().challenge); in TEST()
[all …]