Home
last modified time | relevance | path

Searched refs:keyfile (Results 1 – 25 of 72) sorted by relevance

123

/freebsd-13.1/tests/sys/geom/class/eli/
H A Dattach_test.sh18 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
20 atf_check geli init -B none -P -K keyfile ${md}
21 atf_check geli attach -d -p -k keyfile ${md}
55 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
57 atf_check geli init -B none -P -K keyfile ${md}
58 atf_check geli attach -r -p -k keyfile ${md}
87 atf_check geli init -B none -P -K keyfile ${md0}
88 atf_check geli init -B none -P -K keyfile ${md1}
89 atf_check geli init -B none -P -K keyfile ${md2}
90 atf_check geli attach -p -k keyfile ${md0} ${md1} ${md2}
[all …]
H A Dinit_test.sh14 geli init -B none -e $ealgo -l $keylen -P -K keyfile \
16 atf_check geli attach -p -k keyfile ${md}
48 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
83 atf_check -s exit:0 -o ignore geli init -P -K keyfile ${md}
88 atf_check -s not-exit:0 -e ignore geli attach -p -k keyfile ${md}
90 atf_check -s exit:0 -o ignore geli attach -p -k keyfile ${md}
97 geli init -B backupfile -P -K keyfile ${md}
104 atf_check geli attach -p -k keyfile ${md}
240 atf_check geli attach -p -k keyfile ${md}
284 atf_check geli attach -p -k keyfile ${md}
[all …]
H A Dintegrity_test.sh14 -K keyfile -s $secsize ${md}
15 atf_check geli attach -p -k keyfile ${md}
60 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
79 geli init -B none -a $aalgo -e $ealgo -l $keylen -P -K keyfile \
86 atf_check geli attach -p -k keyfile ${md}
106 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
123 geli init -B none -a $aalgo -e $ealgo -l $keylen -P -K keyfile \
130 atf_check geli attach -p -k keyfile ${md}
150 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
H A Dreentrancy_test.sh17 atf_check dd if=/dev/random of=keyfile bs=$secsize count=16 status=none
21 geli init -B none -a $aalgo -e $ealgo -l $keylen -P -K keyfile \
23 atf_check geli attach -p -k keyfile ${md}
26 geli init -B none -a $aalgo -e $ealgo -l $keylen -P -K keyfile \
28 atf_check geli attach -p -k keyfile ${md}.eli
H A Dkill_test.sh81 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
83 atf_check geli init -B none -P -K keyfile ${md}
85 atf_check geli attach -r -p -k keyfile ${md}
91 atf_check geli attach -p -k keyfile ${md}
H A Ddetach_test.sh18 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
20 atf_check geli init -B none -P -K keyfile ${md}
21 atf_check geli attach -p -k keyfile ${md}
/freebsd-13.1/crypto/heimdal/kdc/
H A Dkstash.c38 static char *keyfile; variable
87 if (keyfile == NULL) in main()
88 asprintf(&keyfile, "%s/m-key", hdb_db_dir(context)); in main()
94 ret = hdb_read_master_key(context, keyfile, &mkey); in main()
96 krb5_err(context, 1, ret, "reading master key from %s", keyfile); in main()
100 krb5_err(context, 1, ret, "reading master key from %s", keyfile); in main()
138 asprintf(&old, "%s.old", keyfile); in main()
139 asprintf(&new, "%s.new", keyfile); in main()
144 krb5_warnx(context, "writing key to `%s'", keyfile); in main()
151 if(link(keyfile, old) < 0 && errno != ENOENT) { in main()
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_encrypted_props.ksh53 [[ -f $keyfile ]] && log_must rm $keyfile
59 typeset keyfile=/$TESTPOOL/pkey
66 log_must eval "echo 'password' > $keyfile"
72 -o keylocation=file://$keyfile $TESTPOOL/crypt
112 "-o keyformat=passphrase -o keylocation=file://$keyfile $TESTPOOL/recv"
126 "-o keylocation=file://$keyfile $ds < $sendfile"
130 log_must test "$(get_prop 'keylocation' $ds)" == "file://$keyfile"
142 "-o keylocation=file://$keyfile $ds < $sendfile"
146 log_must test "$(get_prop 'keylocation' $ds)" == "file://$keyfile"
160 "-o keylocation=file://$keyfile $ds < $sendfile"
[all …]
H A Dsend-wR_encrypted_zvol.ksh43 [[ -d $recvmnt ]] && log_must rm -rf $keyfile
44 [[ -d $mntpnt ]] && log_must rm -rf $keyfile
47 [[ -f $keyfile ]] && log_must rm $keyfile
54 typeset keyfile=/$TESTPOOL/pkey
63 log_must eval "echo 'password' > $keyfile"
66 -o keylocation=file://$keyfile -V 128M $TESTPOOL/$TESTVOL
H A Dsend_encrypted_truncated_files.ksh48 [[ -f $keyfile ]] && log_must rm $keyfile
69 typeset keyfile=/$TESTPOOL/pkey
74 log_must eval "echo 'password' > $keyfile"
76 -o keylocation=file://$keyfile $TESTPOOL/$TESTFS2
H A Dsend_encrypted_files.ksh52 [[ -f $keyfile ]] && log_must rm $keyfile
59 typeset keyfile=/$TESTPOOL/pkey
64 log_must eval "echo 'password' > $keyfile"
66 -o keylocation=file://$keyfile $TESTPOOL/$TESTFS2
H A Dsend_realloc_encrypted_files.ksh47 rm -f $keyfile
54 typeset keyfile=/$TESTPOOL/pkey
57 log_must eval "echo 'password' > $keyfile"
59 -o keylocation=file://$keyfile $POOL/fs
H A Drecv_dedup_encrypted_zvol.ksh36 rm $keyfile
42 typeset keyfile=/$TESTPOOL/pkey
49 log_must eval "echo 'password' > $keyfile"
/freebsd-13.1/contrib/unbound/contrib/
H A Dupdate-anchor.sh56 keyfile="$2"
65 $ubhost -v $rh $filearg "$keyfile" -t DNSKEY "$zonename" >$tmpfile
68 echo "Error: Could not update zone $zonename anchor file $keyfile"
79 echo "Error: Could not update zone $zonename anchor file $keyfile"
122 diff $tmp2 $keyfile >/dev/null 2>&1
124 cat $tmp2 > $keyfile
126 echo "$zonename key file $keyfile updated."
128 echo "$zonename key file $keyfile unchanged."
/freebsd-13.1/share/examples/uefisign/
H A Duefikeys20 keyfile="${1}.key"
29 [ ! -e "${keyfile}" ] || die "${keyfile} already exists"
33 openssl genrsa -out "${keyfile}" 2048 2> /dev/null || die "openssl genrsa failed"
34 openssl req -new -x509 -sha256 -days "${days}" -subj "${subj}" -key "${keyfile}" -out "${certfile}"…
37 echo "certificate: ${certfile}; private key: ${keyfile}; certificate to enroll in UEFI: ${efifile}"
/freebsd-13.1/sbin/decryptcore/
H A Ddecryptcore.c119 decrypt(int ofd, const char *privkeyfile, const char *keyfile, in decrypt() argument
135 PJDLOG_ASSERT(keyfile != NULL); in decrypt()
157 kfd = open(keyfile, O_RDONLY); in decrypt()
159 pjdlog_errno(LOG_ERR, "Unable to open %s", keyfile); in decrypt()
310 char core[PATH_MAX], encryptedcore[PATH_MAX], keyfile[PATH_MAX]; in main() local
327 *keyfile = '\0'; in main()
352 if (strlcpy(keyfile, optarg, sizeof(keyfile)) >= in main()
353 sizeof(keyfile)) { in main()
378 (*keyfile != '\0' || *encryptedcore != '\0' || *core != '\0')) { in main()
393 PJDLOG_VERIFY(snprintf(keyfile, sizeof(keyfile), in main()
[all …]
/freebsd-13.1/crypto/openssl/apps/
H A Dsmime.c257 keyfile = NULL; in smime_main()
274 if (keyfile != NULL) { in smime_main()
290 keyfile = opt_arg(); in smime_main()
342 if (!keyfile) in smime_main()
351 keyfile = NULL; in smime_main()
427 if (keyfile == NULL) in smime_main()
428 keyfile = recipfile; in smime_main()
430 if (keyfile == NULL) in smime_main()
431 keyfile = signerfile; in smime_main()
433 keyfile = NULL; in smime_main()
[all …]
H A Dcms.c485 keyfile = NULL; in cms_main()
491 if (keyfile != NULL) { in cms_main()
506 keyfile = opt_arg(); in cms_main()
617 if (keyfile == NULL) in cms_main()
626 keyfile = NULL; in cms_main()
716 if (keyfile == NULL) in cms_main()
717 keyfile = recipfile; in cms_main()
719 if (keyfile == NULL) in cms_main()
720 keyfile = signerfile; in cms_main()
722 keyfile = NULL; in cms_main()
[all …]
H A Dspkac.c57 char *challenge = NULL, *keyfile = NULL; in spkac_main() local
96 keyfile = opt_arg(); in spkac_main()
125 if (keyfile != NULL) { in spkac_main()
126 pkey = load_key(strcmp(keyfile, "-") ? keyfile : NULL, in spkac_main()
H A Ddgst.c95 const char *outfile = NULL, *keyfile = NULL, *prog = NULL; in dgst_main() local
143 keyfile = opt_arg(); in dgst_main()
149 keyfile = opt_arg(); in dgst_main()
153 keyfile = opt_arg(); in dgst_main()
208 if (keyfile != NULL && argc > 1) { in dgst_main()
240 if (keyfile != NULL) in dgst_main()
250 if ((!(mac_name == NULL) + !(keyfile == NULL) + !(hmac_key == NULL)) > 1) { in dgst_main()
255 if (keyfile != NULL) { in dgst_main()
259 sigkey = load_pubkey(keyfile, keyform, 0, NULL, e, "key file"); in dgst_main()
261 sigkey = load_key(keyfile, keyform, 0, passin, e, "key file"); in dgst_main()
H A Drsautl.c72 char *infile = NULL, *outfile = NULL, *keyfile = NULL; in rsautl_main() local
150 keyfile = opt_arg(); in rsautl_main()
177 pkey = load_key(keyfile, keyformat, 0, passin, e, "Private Key"); in rsautl_main()
181 pkey = load_pubkey(keyfile, keyformat, 0, NULL, e, "Public Key"); in rsautl_main()
185 x = load_cert(keyfile, keyformat, "Certificate"); in rsautl_main()
/freebsd-13.1/libexec/rc/rc.d/
H A Dsshd33 local keyfile
41 keyfile="/etc/ssh/ssh_host_${alg}_key"
48 if [ -f "${keyfile}" ] ; then
59 /usr/bin/ssh-keygen -q -t $alg -f "$keyfile" -N ""
60 /usr/bin/ssh-keygen -l -f "$keyfile.pub"
/freebsd-13.1/usr.bin/ssh-copy-id/
H A Dssh-copy-id.sh42 keyfile=$HOME/.ssh/authorized_keys ; \
46 if ! grep -sqwF "$key" "$keyfile"; then \
47 printf "$alg $key $comment\n" >> "$keyfile" ; \
51 /sbin/restorecon -F "$HOME/.ssh/" "$keyfile" >/dev/null 2>&1 || true ; \
/freebsd-13.1/contrib/ntp/sntp/
H A Dcrypto.c217 const char *keyfile, in auth_init() argument
221 FILE *keyf = fopen(keyfile, "r"); in auth_init()
232 printf("sntp auth_init: Couldn't open key file %s for reading!\n", keyfile); in auth_init()
237 printf("sntp auth_init: Key file %s is empty!\n", keyfile); in auth_init()
283 keyfile, line_cnt, in auth_init()
/freebsd-13.1/crypto/heimdal/kadmin/
H A Dkadmin.c39 static char *keyfile; variable
63 "key-file", 'k', arg_string, &keyfile,
204 if (keyfile) { in main()
205 conf.stash_file = keyfile; in main()

123