Lines Matching refs:file
8 * license that can be found in the LICENSE file or at
19 struct filedes file;
22 if (!open_file(&file, filename, O_WRONLY|O_CREAT|O_TRUNC, 0644))
24 ok = full_write(&file, sig, sig_size);
25 ok &= filedes_close(&file);
43 /* Sign a file for fs-verity by computing its digest, then signing it. */
47 struct filedes file = { .fd = -1 };
116 if (!open_file(&file, argv[0], O_RDONLY, 0))
119 if (!get_file_size(&file, &tree_params.file_size))
122 if (libfsverity_compute_digest(&file, read_callback,
139 printf("Signed file '%s' (%s:%s)\n", argv[0],
143 filedes_close(&file);