Searched refs:deserialized (Results 1 – 3 of 3) sorted by relevance
/system/keymaster/ |
D | google_keymaster_messages_test.cpp | 48 Message* deserialized = new Message; in round_trip() local 50 EXPECT_TRUE(deserialized->Deserialize(&p, p + size)); in round_trip() 52 return deserialized; in round_trip() 74 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(msg, 5)); in TEST() local 81 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(msg, 4)); in TEST() local 91 UniquePtr<SupportedAlgorithmsResponse> deserialized(round_trip(rsp, 20)); in TEST() local 92 EXPECT_EQ(array_length(algorithms), deserialized->algorithms_length); in TEST() 93 EXPECT_EQ(0, memcmp(deserialized->algorithms, algorithms, array_size(algorithms))); in TEST() 102 UniquePtr<SupportedResponse<keymaster_digest_t>> deserialized(round_trip(rsp, 20)); in TEST() local 103 EXPECT_EQ(array_length(digests), deserialized->results_length); in TEST() [all …]
|
D | key_blob_test.cpp | 95 KeyBlob deserialized(encrypted_blob, hidden_, master_key_); in TEST_F() local 96 EXPECT_EQ(KM_ERROR_OK, deserialized.error()); in TEST_F() 97 EXPECT_EQ(0, memcmp(deserialized.key_material(), key_data, array_size(key_data))); in TEST_F() 110 KeyBlob deserialized(encrypted_blob, hidden_, master_key_); in TEST_F() local 111 EXPECT_EQ(KM_ERROR_INVALID_KEY_BLOB, deserialized.error()); in TEST_F() 129 KeyBlob deserialized(encrypted_blob, hidden_, master_key_); in TEST_F() local 130 EXPECT_EQ(KM_ERROR_INVALID_KEY_BLOB, deserialized.error()); in TEST_F() 131 EXPECT_NE(0, memcmp(deserialized.key_material(), key_data, array_size(key_data))); in TEST_F() 149 KeyBlob deserialized(encrypted_blob, hidden_, master_key_); in TEST_F() local 150 EXPECT_EQ(KM_ERROR_INVALID_KEY_BLOB, deserialized.error()); in TEST_F() [all …]
|
D | authorization_set_test.cpp | 166 AuthorizationSet deserialized(buf.get(), size); in TEST() local 168 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST() 169 EXPECT_EQ(set, deserialized); in TEST() 171 int pos = deserialized.find(TAG_APPLICATION_ID); in TEST() 173 EXPECT_EQ(KM_TAG_APPLICATION_ID, deserialized[pos].tag); in TEST() 174 EXPECT_EQ(6U, deserialized[pos].blob.data_length); in TEST() 175 EXPECT_EQ(0, memcmp(deserialized[pos].blob.data, "my_app", 6)); in TEST() 196 AuthorizationSet deserialized; in TEST() local 198 EXPECT_TRUE(deserialized.Deserialize(&p, p + size)); in TEST() 201 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST() [all …]
|