Searched refs:read_fn (Results 1 - 4 of 4) sorted by relevance
/third_party/fsverity-utils/programs/ |
H A D | test_compute_digest.c | 24 static int read_fn(void *fd, void *buf, size_t count) in read_fn() function 204 ASSERT(libfsverity_compute_digest(&f, read_fn, &good_params, &d) == 0); in test_invalid_params() 211 ASSERT(libfsverity_compute_digest(&f, read_fn, NULL, &d) == -EINVAL); in test_invalid_params() 212 ASSERT(libfsverity_compute_digest(&f, read_fn, &good_params, NULL) == -EINVAL); in test_invalid_params() 217 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 219 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 224 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 229 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 231 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 236 ASSERT(libfsverity_compute_digest(&f, read_fn, in test_invalid_params() [all...] |
/third_party/fsverity-utils/lib/ |
H A D | compute_digest.c | 103 static int compute_root_hash(void *fd, libfsverity_read_fn_t read_fn, in compute_root_hash() argument 186 err = read_fn(fd, buffers[-1].data, buffers[-1].filled); in compute_root_hash() 235 libfsverity_compute_digest(void *fd, libfsverity_read_fn_t read_fn, in libfsverity_compute_digest() argument 247 if (!read_fn || !params || !digest_ret) { in libfsverity_compute_digest() 308 err = compute_root_hash(fd, read_fn, params->file_size, hash, in libfsverity_compute_digest()
|
/third_party/fsverity-utils/include/ |
H A D | libfsverity.h | 171 * @fd: context that will be passed to @read_fn 172 * @read_fn: a function that will read the data of the file 178 * failed to allocate memory, or an error returned by @read_fn or by one of 184 libfsverity_compute_digest(void *fd, libfsverity_read_fn_t read_fn,
|
/third_party/libbpf/src/ |
H A D | bpf_core_read.h | 316 #define ___read(read_fn, dst, src_type, src, accessor) \ 317 read_fn((void *)(dst), sizeof(*(dst)), &((src_type)(src))->accessor)
|
Completed in 3 milliseconds