Home
last modified time | relevance | path

Searched refs:newkey (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/crypto/openssl/test/recipes/80-test_cmp_http_data/
H A Dtest_enrollment.csv4 1,newkey, -section,, -cmd,ir, -newkey,new.key,, -newkeypass,pass:,,,BLANK,,BLANK,,BLANK,,BLANK,,BLA…
5 0,newkey missing arg, -section,, -cmd,ir, -newkey,,, -newkeypass,pass:,,,BLANK,,BLANK,,BLANK,,BLANK…
6 0,newkey is directory, -section,, -cmd,ir, -newkey,dir/,, -newkeypass,pass:,,,BLANK,,BLANK,,BLANK,,…
7 0,newkey too many parameters, -section,, -cmd,ir, -newkey,abc,def, -newkeypass,pass:,,,BLANK,,BLANK…
8 0,newkey is an RSA key, -section,, -cmd,ir, -newkey,test.RSA2048.pem,, -newkeypass,pass:,,,BLANK,,B…
66 0,no certout, -section,, -cmd,ir, -newkey,new.key,, -newkeypass,pass:,,,BLANK,,BLANK,,BLANK,,BLANK,…
91 0,pkcs10 converted to ir without -newkey, -section,, -cmd,ir, -newkey,"""",, BLANK,,,,BLANK,,BLANK,…
107 0,kur newkey value missing, -section,, -cmd,kur, -newkey,,, -newkeypass,pass:,,,BLANK,,BLANK,,BLANK…
108 0,kur newkey is directory, -section,, -cmd,kur, -newkey,dir/,, -newkeypass,pass:,,,BLANK,,BLANK,,BL…
109 0,kur newkey parameter count no match, -section,, -cmd,kur, -newkey,abc,def, -newkeypass,pass:,,,BL…
[all …]
/freebsd/sys/dev/random/fenestrasX/
H A Dfx_rng.c122 uint8_t newkey[FX_CHACHA20_KEYSIZE]; in fxrng_rng_genrandom_internal() local
128 fxrng_rng_keystream_internal(&rng->rng_prf, newkey, sizeof(newkey)); in fxrng_rng_genrandom_internal()
142 chacha_keysetup(&rng->rng_prf, newkey, sizeof(newkey) * 8); in fxrng_rng_genrandom_internal()
143 explicit_bzero(newkey, sizeof(newkey)); in fxrng_rng_genrandom_internal()
157 chacha_keysetup(&rng->rng_prf, newkey, sizeof(newkey) * 8); in fxrng_rng_genrandom_internal()
158 explicit_bzero(newkey, sizeof(newkey)); in fxrng_rng_genrandom_internal()
H A Dfx_main.c165 uint8_t newkey[FX_CHACHA20_KEYSIZE]; in _fxrng_alg_read() local
214 fxrng_brng_produce_seed_data_internal(&fxrng_root, newkey, in _fxrng_alg_read()
215 sizeof(newkey), &rng->brng_generation); in _fxrng_alg_read()
218 fxrng_rng_setkey(&rng->brng_rng, newkey, sizeof(newkey)); in _fxrng_alg_read()
219 explicit_bzero(newkey, sizeof(newkey)); in _fxrng_alg_read()
H A Dfx_brng.c254 uint8_t newkey[FX_CHACHA20_KEYSIZE]; in fxrng_brng_read() local
284 fxrng_brng_produce_seed_data_internal(&fxrng_root, newkey, in fxrng_brng_read()
285 sizeof(newkey), &rng->brng_generation); in fxrng_brng_read()
290 fxrng_rng_setkey(&rng->brng_rng, newkey, sizeof(newkey)); in fxrng_brng_read()
291 explicit_bzero(newkey, sizeof(newkey)); in fxrng_brng_read()
H A Dfx_rng.h58 fxrng_rng_setkey(struct fxrng_basic_rng *rng, const void *newkey, size_t len) in fxrng_rng_setkey() argument
61 chacha_keysetup(&rng->rng_prf, newkey, len * 8); in fxrng_rng_setkey()
/freebsd/sys/dev/random/
H A Dfortuna.c612 randomdev_keystream(p_key, p_counter, newkey, in random_fortuna_genbytes()
614 randomdev_encrypt_init(p_key, newkey); in random_fortuna_genbytes()
660 randomdev_encrypt_init(p_key, newkey); in random_fortuna_genbytes()
679 uint8_t newkey[static RANDOM_KEYSIZE]) in random_fortuna_read_concurrent()
735 newkey, RANDOM_KEYSIZE); in random_fortuna_read_concurrent()
736 randomdev_encrypt_init(&fortuna_state.fs_key, newkey); in random_fortuna_read_concurrent()
744 random_fortuna_genbytes(buf, bytecount, newkey, &counter_copy, in random_fortuna_read_concurrent()
764 uint8_t newkey[RANDOM_KEYSIZE]; in random_fortuna_read() local
767 random_fortuna_read_concurrent(buf, bytecount, newkey); in random_fortuna_read()
774 random_fortuna_genbytes(buf, bytecount, newkey, in random_fortuna_read()
[all …]
/freebsd/crypto/openssl/test/smime-certs/
H A Dmksmime-certs.sh18 -keyout smroot.pem -out smroot.pem -newkey rsa:2048 -days 36501
22 -keyout smrsa1.pem -out req.pem -newkey rsa:2048
28 -keyout smrsa2.pem -out req.pem -newkey rsa:2048
33 -keyout smrsa3.pem -out req.pem -newkey rsa:2048
42 -keyout smdsa1.pem -out req.pem -newkey dsa:dsap.pem
46 -keyout smdsa2.pem -out req.pem -newkey dsa:dsap.pem
50 -keyout smdsa3.pem -out req.pem -newkey dsa:dsap.pem
60 -keyout smec1.pem -out req.pem -newkey ec:ecp.pem
64 -keyout smec2.pem -out req.pem -newkey ec:ecp2.pem
79 -keyout smtmp.pem -out req.pem -newkey rsa:2048
/freebsd/usr.bin/newkey/
H A DMakefile4 PROG= newkey
5 SRCS= newkey.c generic.c update.c
9 MAN= newkey.8
/freebsd/crypto/openssl/test/
H A Dcmp_msg_test.c66 static EVP_PKEY *newkey = NULL; variable
155 || !TEST_true(set1_newPkey(ctx, newkey)) in test_cmp_create_ir_protection_set()
198 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_cr()
212 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_certreq_with_invalid_bodytype()
231 || !TEST_true(set1_newPkey(ctx, newkey)) in test_cmp_create_p10cr()
247 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_p10cr_null()
261 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey)) in test_cmp_create_kur()
276 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_kur_without_oldcert()
334 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_error_msg()
541 EVP_PKEY_free(newkey); in cleanup_tests()
[all …]
/freebsd/crypto/heimdal/kadmin/
H A Drandom_password.c58 OtpKey newkey; in random_password() local
60 krb5_generate_random_block(&newkey, sizeof(newkey)); in random_password()
61 otp_print_stddict (newkey, pw, len); in random_password()
/freebsd/libexec/rc/rc.d/
H A Dsendmail133 -config openssl.cnf -newkey rsa:2048 >/dev/null 2>&1 &&
136 openssl req -batch -nodes -new -x509 -keyout newkey.pem \
138 -newkey rsa:2048 >/dev/null 2>&1 &&
141 openssl x509 -x509toreq -in newreq.pem -signkey newkey.pem \
150 chmod 600 newkey.pem &&
153 cp -p newkey.pem "$CERTDIR"/host.key &&
/freebsd/crypto/openssl/demos/certs/
H A Dmkcerts.sh9 -keyout root.pem -out root.pem -newkey rsa:2048 -days 3650
12 -keyout intkey.pem -out intreq.pem -newkey rsa:2048
19 -keyout skey.pem -out req.pem -newkey rsa:1024
26 -keyout ckey.pem -out creq.pem -newkey rsa:1024
33 -keyout revkey.pem -out rreq.pem -newkey rsa:1024
40 -keyout respkey.pem -out respreq.pem -newkey rsa:1024
/freebsd/usr.bin/chkey/
H A DMakefile4 .PATH: ${SRCTOP}/usr.bin/newkey
8 CFLAGS+= -I${SRCTOP}/usr.bin/newkey
/freebsd/crypto/openssl/test/recipes/80-test_cmp_http_data/Mock/
H A Dtest.cnf5 newkey = new.key
32 newkey = signer.key
95 newkey =
/freebsd/crypto/openssl/demos/certs/apps/
H A Dmkxcerts.sh23 -nodes -keyout tecp256.pem -out tecp256.pem -newkey ec:ecp256.pem \
28 -nodes -keyout tecp384.pem -out tecp384.pem -newkey ec:ecp384.pem \
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dmhd.h125 mhioc_resv_key_t newkey; member
135 mhioc_resv_key_t newkey; member
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c360 zfs_keyformat_t keyformat, boolean_t confirm_key, boolean_t newkey, in get_key_interactive() argument
378 if ((ret = libzfs_getpassphrase(keyformat, B_FALSE, newkey, fsname, in get_key_interactive()
395 ret = libzfs_getpassphrase(keyformat, B_TRUE, newkey, fsname, &buf2, in get_key_interactive()
483 const char *fsname, zfs_keyformat_t keyformat, boolean_t newkey, in get_key_material_file() argument
486 (void) fsname, (void) newkey; in get_key_material_file()
510 const char *fsname, zfs_keyformat_t keyformat, boolean_t newkey, in get_key_material_https() argument
513 (void) fsname, (void) newkey; in get_key_material_https()
711 do_verify, newkey, &km, &kmlen); in get_key_material()
731 fsname, keyformat, newkey, &km, &kmlen)) != 0) in get_key_material()
852 zfs_handle_t *zhp, boolean_t newkey, zfs_keyformat_t keyformat, in populate_create_encryption_params_nvlists() argument
[all …]
/freebsd/contrib/ldns/
H A Dkeys.c81 ldns_key *newkey; in ldns_key_new() local
83 newkey = LDNS_MALLOC(ldns_key); in ldns_key_new()
84 if (!newkey) { in ldns_key_new()
88 ldns_key_set_use(newkey, true); in ldns_key_new()
90 ldns_key_set_origttl(newkey, 0); in ldns_key_new()
91 ldns_key_set_keytag(newkey, 0); in ldns_key_new()
92 ldns_key_set_inception(newkey, 0); in ldns_key_new()
93 ldns_key_set_expiration(newkey, 0); in ldns_key_new()
96 ldns_key_set_evp_key(newkey, NULL); in ldns_key_new()
98 ldns_key_set_hmac_key(newkey, NULL); in ldns_key_new()
[all …]
/freebsd/sys/netinet/
H A Dtcp_fastopen.c515 uint8_t newkey[TCP_FASTOPEN_KEY_LEN]; in tcp_fastopen_autokey_locked() local
517 arc4rand(newkey, TCP_FASTOPEN_KEY_LEN, 0); in tcp_fastopen_autokey_locked()
518 tcp_fastopen_addkey_locked(newkey); in tcp_fastopen_autokey_locked()
758 uint8_t newkey[TCP_FASTOPEN_KEY_LEN]; in sysctl_net_inet_tcp_fastopen_setkey() local
764 if (req->newlen != sizeof(newkey)) in sysctl_net_inet_tcp_fastopen_setkey()
766 error = SYSCTL_IN(req, newkey, sizeof(newkey)); in sysctl_net_inet_tcp_fastopen_setkey()
771 tcp_fastopen_addkey_locked(newkey); in sysctl_net_inet_tcp_fastopen_setkey()
/freebsd/sys/dev/kbd/
H A Dkbd.c1019 key_change_ok(struct keyent_t *oldkey, struct keyent_t *newkey, struct thread *td) in key_change_ok() argument
1030 if (oldkey->map[i] != newkey->map[i]) in key_change_ok()
1032 if (oldkey->spcl != newkey->spcl) in key_change_ok()
1034 if (oldkey->flgs != newkey->flgs) in key_change_ok()
1045 if (!RESTRICTED_KEY(oldkey, i) && !RESTRICTED_KEY(newkey, i)) in key_change_ok()
1047 if ((oldkey->spcl & (0x80 >> i)) == (newkey->spcl & (0x80 >> i)) in key_change_ok()
1048 && oldkey->map[i] == newkey->map[i]) in key_change_ok()
1100 fkey_change_ok(fkeytab_t *oldkey, fkeyarg_t *newkey, struct thread *td) in fkey_change_ok() argument
1105 if (oldkey->len != newkey->flen || in fkey_change_ok()
1106 bcmp(oldkey->str, newkey->keydef, oldkey->len) != 0) in fkey_change_ok()
/freebsd/crypto/openssh/
H A Dpacket.c2279 struct newkeys *newkey; in newkeys_to_blob() local
2284 enc = &newkey->enc; in newkeys_to_blob()
2285 mac = &newkey->mac; in newkeys_to_blob()
2286 comp = &newkey->comp; in newkeys_to_blob()
2349 struct newkeys *newkey = NULL; in newkeys_from_blob() local
2353 if ((newkey = calloc(1, sizeof(*newkey))) == NULL) { in newkeys_from_blob()
2362 enc = &newkey->enc; in newkeys_from_blob()
2363 mac = &newkey->mac; in newkeys_from_blob()
2364 comp = &newkey->comp; in newkeys_from_blob()
2400 newkey = NULL; in newkeys_from_blob()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/
H A Dzfs_load-key_common.kshlib104 …log_must openssl req -x509 -newkey rsa:4096 -sha256 -days 1 -nodes -keyout "/$TESTPOOL/snakeoil.ke…
/freebsd/crypto/openssl/doc/man1/
H A Dopenssl-req.pod.in24 [B<-newkey> I<arg>]
85 (B<-new> or B<-newkey> or B<-precert>) are not specified.
155 the B<-newkey> and B<-pkeyopt> options,
158 =item B<-newkey> I<arg>
169 If I<nbits> is omitted, i.e., B<-newkey> B<rsa> is specified,
173 All other algorithms support the B<-newkey> I<algname>:I<file> form, where
430 the B<-newkey> option. The smallest accepted key size is 512 bits. If
593 openssl req -newkey rsa:2048 -keyout key.pem -out req.pem
597 openssl req -x509 -newkey rsa:2048 -keyout key.pem -out req.pem
686 -newkey rsa:2048 -keyout key.pem -out req.pem
H A Dopenssl-cmp.pod.in24 [B<-newkey> I<filename>|I<uri>]
249 =item B<-newkey> I<filename>|I<uri>
263 Pass phrase source for the key given with the B<-newkey> option.
355 is provided via the B<-newkey> or B<-key> options.
364 In this case, a private key must be provided (with B<-newkey> or B<-key>)
721 It is also used as a fallback for the B<-newkey> option with IR/CR/KUR messages.
801 This applies to all options specifying keys: B<-key>, B<-newkey>, and
1219 -newkey cl_key.pem -subject "/CN=MyName" \
1234 -newkey cl_key_new.pem -certout cl_cert.pem
1265 newkey = cl_key.pem
[all …]
H A DCA.pl.pod67 F<newkey.pem> and the request written to the file F<newreq.pem>.
73 F<newkey.pem> and the request written to the file F<newreq.pem>.

12