Home
last modified time | relevance | path

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

/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp42 Message* deserialized = new Message(ver); in round_trip() local
44 EXPECT_TRUE(deserialized->Deserialize(&p, p + size)); in round_trip()
46 return deserialized; in round_trip()
54 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(ver, msg, 4)); in TEST() local
63 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(ver, msg, 4)); in TEST() local
87 UniquePtr<GenerateKeyRequest> deserialized(round_trip(ver, req, ver < 4 ? 78 : 170)); in TEST() local
88 EXPECT_EQ(deserialized->key_description, req.key_description); in TEST()
90 EXPECT_EQ(0U, deserialized->attestation_signing_key_blob.key_material_size); in TEST()
92 EXPECT_EQ(3U, deserialized->attestation_signing_key_blob.key_material_size); in TEST()
94 deserialized->attestation_signing_key_blob.key_material, in TEST()
[all …]
Dauthorization_set_test.cpp174 AuthorizationSet deserialized(buf.get(), size); in TEST() local
176 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
177 EXPECT_EQ(set, deserialized); in TEST()
179 int pos = deserialized.find(TAG_APPLICATION_ID); in TEST()
181 EXPECT_EQ(KM_TAG_APPLICATION_ID, deserialized[pos].tag); in TEST()
182 EXPECT_EQ(6U, deserialized[pos].blob.data_length); in TEST()
183 EXPECT_EQ(0, memcmp(deserialized[pos].blob.data, "my_app", 6)); in TEST()
202 AuthorizationSet deserialized; in TEST() local
204 EXPECT_TRUE(deserialized.Deserialize(&p, p + size)); in TEST()
207 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
[all …]
Dkey_blob_test.cpp125 DeserializedKey deserialized = DeserializeAuthEncryptedBlob(serialized_blob_, &error); in TEST_F() local
127 EXPECT_EQ(hw_enforced_, deserialized.hw_enforced); in TEST_F()
131 EXPECT_EQ(sw_enforced_, deserialized.sw_enforced); in TEST_F()
135 KeymasterKeyBlob plaintext = DecryptKey(move(deserialized), hidden_, master_key_, &error); in TEST_F()
323 auto deserialized = DeserializeAuthEncryptedBlob(key_blob, &error); in TEST_F() local
327 DecryptKey(move(deserialized), hidden_, master_key_, &error); in TEST_F()
/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 …]