Lines Matching defs:key_file
422 const char *key_file,
436 assert(key_file || (passwords && passwords[0]));
444 if (key_file) {
445 r = read_one_line_file(key_file, &passphrase);
447 log_error_errno(r, "Failed to read password file '%s': %m", key_file);
458 if (key_file && r == -EPERM) {
459 log_error("Failed to activate using password file '%s'.", key_file);
470 const char *key_file,
479 assert(key_file || passwords);
504 } else if (!key_file)
550 if (key_file) {
551 r = crypt_activate_by_keyfile_offset(cd, name, arg_key_slot, key_file, arg_keyfile_size, arg_keyfile_offset, flags);
553 log_error_errno(r, "Failed to activate with key file '%s': %m", key_file);
610 const char *key_file = NULL;
627 key_file = argv[4];
670 if (key_file) {
675 if (stat(key_file, &st) >= 0 && S_ISREG(st.st_mode) && (st.st_mode & 0005))
676 log_warning("Key file %s is world-readable. This is not a good idea!", key_file);
682 if (!key_file) {
691 k = attach_tcrypt(cd, argv[2], key_file, passwords, flags);
695 key_file,
702 key_file = NULL;