/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_crypto.c | 203 validate_key(libzfs_handle_t *hdl, zfs_keyformat_t keyformat, in validate_key() argument 206 switch (keyformat) { in validate_key() 278 libzfs_getpassphrase(zfs_keyformat_t keyformat, boolean_t is_reenter, in libzfs_getpassphrase() argument 308 get_format_prompt_string(keyformat)); in libzfs_getpassphrase() 360 zfs_keyformat_t keyformat, boolean_t confirm_key, boolean_t newkey, in get_key_interactive() argument 370 if (keyformat == ZFS_KEYFORMAT_RAW) { in get_key_interactive() 378 if ((ret = libzfs_getpassphrase(keyformat, B_FALSE, newkey, fsname, in get_key_interactive() 389 if ((ret = validate_key(hdl, keyformat, buf, buflen, confirm_key)) != in get_key_interactive() 395 ret = libzfs_getpassphrase(keyformat, B_TRUE, newkey, fsname, &buf2, in get_key_interactive() 424 get_key_material_raw(FILE *fd, zfs_keyformat_t keyformat, in get_key_material_raw() argument [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/ |
H A D | zfs_load-key_https.ksh | 50 log_mustnot zfs create -o encryption=on -o keyformat=passphrase \ 53 log_mustnot zfs create -o encryption=on -o keyformat=passphrase \ 56 log_mustnot zfs create -o encryption=on -o keyformat=passphrase \ 59 log_must zfs create -o encryption=on -o keyformat=passphrase \ 62 log_must zfs create -o encryption=on -o keyformat=hex \ 65 log_must zfs create -o encryption=on -o keyformat=raw \
|
H A D | zfs_load-key_all.ksh | 50 log_must zfs create -o encryption=on -o keyformat=passphrase \ 53 log_must zfs create -o encryption=on -o keyformat=passphrase \ 56 log_must zfs create -V 64M -o encryption=on -o keyformat=passphrase \ 61 log_must zpool create -O encryption=on -O keyformat=passphrase \
|
H A D | zfs_load-key_recursive.ksh | 49 log_must zfs create -o encryption=on -o keyformat=passphrase \ 52 log_must zfs create -o keyformat=passphrase \ 55 log_must zfs create -o keyformat=passphrase \
|
H A D | zfs_load-key_file.ksh | 48 log_must zfs create -o encryption=on -o keyformat=passphrase \
|
H A D | zfs_load-key_location.ksh | 58 log_must zfs create -o encryption=on -o keyformat=passphrase \
|
H A D | zfs_load-key_common.kshlib | 52 typeset fmt=$(get_prop keyformat $ds)
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/ |
H A D | zfs_create_encrypted.ksh | 84 log_mustnot zfs create -o keyformat=passphrase $TESTPOOL/$TESTFS1/c1 86 log_mustnot zfs create -o keyformat=passphrase -o keylocation=prompt \ 92 log_mustnot zfs create -o encryption=off -o keyformat=passphrase \ 94 log_mustnot zfs create -o encryption=off -o keyformat=passphrase \ 121 log_mustnot zfs create -o encryption=off -o keyformat=passphrase \ 123 log_mustnot zfs create -o encryption=off -o keyformat=passphrase \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_encrypted.ksh | 69 log_mustnot zpool create -O keyformat=passphrase $TESTPOOL $DISKS 70 log_mustnot zpool create -O keyformat=passphrase -O keylocation=prompt \ 78 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \ 80 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unload-key/ |
H A D | zfs_unload-key_all.ksh | 50 log_must zfs create -o encryption=on -o keyformat=passphrase \ 54 log_must zfs create -V 64M -o encryption=on -o keyformat=passphrase \ 59 log_must zpool create -O encryption=on -O keyformat=passphrase \
|
H A D | zfs_unload-key_recursive.ksh | 51 log_must zfs create -o encryption=on -o keyformat=passphrase \ 53 log_must zfs create -o keyformat=passphrase \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/ |
H A D | zfs_receive_-wR-encrypted-mix.ksh | 62 create_dataset "$src" -o encryption=on -o keyformat=passphrase 65 create_dataset "$src/u/e" -o encryption=on -o keyformat=passphrase
|
/freebsd/crypto/openssl/apps/ |
H A D | rsautl.c | 84 int keyformat = FORMAT_UNDEF, keysize, ret = 1, rv; in rsautl_main() local 101 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in rsautl_main() 191 pkey = load_key(keyfile, keyformat, 0, passin, e, "private key"); in rsautl_main() 195 pkey = load_pubkey(keyfile, keyformat, 0, NULL, e, "public key"); in rsautl_main()
|
H A D | spkac.c | 73 int keyformat = FORMAT_UNDEF; in spkac_main() local 110 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in spkac_main() 150 keyformat, 1, passin, e, "private key"); in spkac_main()
|
H A D | crl.c | 92 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, keyformat = FORMAT_UNDEF; in crl_main() local 128 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in crl_main() 268 pkey = load_key(keyfile, keyformat, 0, NULL, NULL, "CRL signing key"); in crl_main()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_crypt.c | 111 dsl_wrapping_key_create(uint8_t *wkeydata, zfs_keyformat_t keyformat, in dsl_wrapping_key_create() argument 127 wkey->wk_keyformat = keyformat; in dsl_wrapping_key_create() 140 uint64_t keyformat = ZFS_KEYFORMAT_NONE; in dsl_crypto_params_create_nvlist() local 156 zfs_prop_to_name(ZFS_PROP_KEYFORMAT), &keyformat); in dsl_crypto_params_create_nvlist() 189 if (keyformat >= ZFS_KEYFORMAT_FORMATS) { in dsl_crypto_params_create_nvlist() 217 dsl_wrapping_key_create(wkeydata, keyformat, salt, in dsl_crypto_params_create_nvlist() 779 uint64_t rddobj, keyformat, salt, iters; in spa_keystore_load_wkey() local 825 zfs_prop_to_name(ZFS_PROP_KEYFORMAT), 8, 1, &keyformat); in spa_keystore_load_wkey() 839 ASSERT3U(keyformat, <, ZFS_KEYFORMAT_FORMATS); in spa_keystore_load_wkey() 840 ASSERT3U(keyformat, !=, ZFS_KEYFORMAT_NONE); in spa_keystore_load_wkey() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pam/ |
H A D | setup.ksh | 36 echo "testpass" | zfs create -o encryption=aes-256-gcm -o keyformat=passphrase -o keylocation=promp…
|
H A D | pam_recursive.ksh | 35 echo "recurpass" | zfs create -o encryption=aes-256-gcm -o keyformat=passphrase \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send_encrypted_props.ksh | 71 log_must zfs create -o encryption=on -o keyformat=passphrase \ 74 log_must zfs create -o keyformat=passphrase -o keylocation=file://$keyfile \
|
H A D | send_encrypted_freeobjects.ksh | 75 -o keyformat=passphrase -o keylocation=file://$keyfile $POOL/$sendds
|
H A D | send_encrypted_incremental.ksh | 70 log_must zfs create -o encryption=on -o keyformat=passphrase \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_change-key/ |
H A D | zfs_change-key_load.ksh | 48 log_must zfs create -o encryption=on -o keyformat=passphrase \
|
H A D | zfs_change-key_location.ksh | 50 log_must zfs create -o encryption=on -o keyformat=passphrase \
|
H A D | zfs_change-key_pbkdf2iters.ksh | 62 log_must zfs create -o encryption=on -o keyformat=passphrase \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_status/ |
H A D | zpool_status_005_pos.ksh | 65 log_must zfs create -o encryption=aes-256-ccm -o keyformat=passphrase \
|