Lines Matching refs:size
20 size_t size;
28 ASSERT(count <= f->size - f->offset);
113 }, { /* 1K block size */
121 }, { /* 512-byte block size */
129 }, { /* 64K block size */
150 }, { /* default hash algorithm (SHA-256) and block size (4096) */
192 struct mem_file f = { .data = (u8 *)"abcd", .size = 4 };
266 static int handle_merkle_tree_size(void *ctx, u64 size)
273 /* Test that the expected Merkle tree size is reported. */
274 ASSERT(size == 5 * 1024);
278 static int handle_merkle_tree_block(void *ctx, const void *block, size_t size,
292 * Test that this Merkle tree block has the expected size, offset, and
297 ASSERT(size == 1024);
298 SHA256(block, size, digest);
329 static int handle_descriptor(void *ctx, const void *descriptor, size_t size)
338 ASSERT(size == 256);
339 SHA256(descriptor, size, digest);
396 f.size = max(f.size, test_cases[i].file_size);
398 f.data = xmalloc(f.size);
399 for (i = 0; i < f.size; i++)
416 f.size = test_cases[i].file_size;