Lines Matching defs:file

24  * distribution in the file COPYING); if not, write to the Free Software
114 * struct ntfs_fek - Decrypted, in-memory file encryption key.
126 char *keyfile; /* .pfx file containing the user's private key. */
128 char *file; /* File to display */
171 ntfs_log_info("\nUsage: %s [options] -k name.pfx device [file]\n\n"
173 " -k --keyfile name.pfx Use file name as the user's private key file.\n"
174 " -e --encrypt Update an encrypted file\n"
222 else if (!opts.file)
223 opts.file = argv[optind - 1];
226 "file.\n");
244 "key file.\n");
283 ntfs_log_error("You must specify a key file.\n");
288 } else if (opts.file == NULL && opts.inode == -1) {
289 ntfs_log_error("You must specify a file or inode with "
292 } else if (opts.file != NULL && opts.inode != -1) {
293 ntfs_log_error("You can't specify both a file and "
323 ntfs_log_error("You have to specify the key file, a pointer "
324 "to hold the key file contents, and a pointer "
325 "to hold the size of the key file contents.\n");
330 ntfs_log_perror("Failed to open key file");
334 ntfs_log_perror("Failed to stat key file");
338 ntfs_log_error("Key file is not a regular file, cannot read "
343 ntfs_log_error("Key file has zero size.\n");
348 ntfs_log_perror("Failed to allocate buffer for key file "
357 ntfs_log_perror("Failed to read from key file");
495 /* Convert the PFX file (DER format) to native pkcs12 format. */
500 ntfs_log_error("Failed to convert the PFX file from DER to "
506 * Verify that the password is correct and that the key file has not
777 ntfs_log_error("Failed to convert file encryption key to "
788 "the file encryption key: %s\n",
796 ntfs_log_error("Failed to decrypt the file encryption key: "
804 ntfs_log_error("Failed to find the decrypted file encryption "
812 ntfs_log_error("Failed to convert the decrypted file "
821 ntfs_log_error("Failed to convert decrypted file encryption "
833 "decrypted file encryption key.\n");
929 /* Do not remove this test code from this file! AIA */
1220 ntfs_log_error("Failed to convert the decrypted file "
1223 ntfs_log_error("Failed to decrypt the file "
1360 * ntfs_cat_decrypt - Decrypt the contents of an encrypted file to stdout.
1361 * @inode: An encrypted file's inode structure, as obtained by
1363 * @fek: A file encryption key. As obtained by ntfs_inode_fek_get().
1397 ntfs_log_perror("ERROR: Couldn't read file");
1429 * ntfs_feed_encrypt - Encrypt the contents of stdin to an encrypted file
1430 * @inode: An encrypted file's inode structure, as obtained by
1432 * @fek: A file encryption key. As obtained by ntfs_inode_fek_get().
1562 /* Load the PKCS#12 (.pfx) file containing the user's private key. */
1564 ntfs_log_error("Failed to load key file. Aborting.\n");
1577 /* Obtain the user's private RSA key from the key file. */
1582 /* No longer need the pfx file contents. */
1599 /* Open the encrypted ntfs file. */
1603 inode = ntfs_pathname_to_inode(vol, NULL, opts.file);
1605 ntfs_log_error("Failed to open encrypted file. Aborting.\n");
1611 /* Obtain the file encryption key of the encrypted file. */
1622 ntfs_log_error("Failed to obtain file encryption key. "