D | vb21_common2_tests.c | 28 struct vb2_packed_key *key2; in test_unpack_key() local 32 key2 = (struct vb2_packed_key *)malloc(size); in test_unpack_key() 34 memcpy(key2, key, size); in test_unpack_key() 35 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key() 38 memcpy(key2, key, size); in test_unpack_key() 39 key2->key_offset += 4; in test_unpack_key() 40 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key() 44 memcpy(key2, key, size); in test_unpack_key() 45 key2->c.fixed_size += size; in test_unpack_key() 46 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key() [all …]
|