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.csv1 expected,description, -section,val, -cmd,val, -newkey,val,val, -newkeypass,val, -subject,val, -issu…
4 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…
10 1,newkeypass, -section,, -cmd,ir, -newkey,new_pass_12345.key,, -newkeypass,pass:12345,,,BLANK,,BLAN…
11 1,read newkeypass from file, -section,, -cmd,ir, -newkey,new_pass_12345.key,, -newkeypass,file:1234…
12 1,newkeypass no prefix, -section,, -cmd,ir, -newkey,new_pass_12345.key,, -newkeypass,12345,,,BLANK,…
13 0,no newkeypass, -section,, -cmd,ir, -newkey,new_pass_12345.key,,BLANK,,,,BLANK,,BLANK,,BLANK,,BLAN…
[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.c552 uint8_t newkey[static RANDOM_KEYSIZE], uint128_t *p_counter, in random_fortuna_genbytes()
610 randomdev_keystream(p_key, p_counter, newkey, in random_fortuna_genbytes()
612 randomdev_encrypt_init(p_key, newkey); in random_fortuna_genbytes()
657 randomdev_keystream(p_key, p_counter, newkey, RANDOM_KEYSIZE); in random_fortuna_genbytes()
658 randomdev_encrypt_init(p_key, newkey); in random_fortuna_genbytes()
677 uint8_t newkey[static RANDOM_KEYSIZE]) in random_fortuna_read_concurrent()
733 newkey, RANDOM_KEYSIZE); in random_fortuna_read_concurrent()
734 randomdev_encrypt_init(&fortuna_state.fs_key, newkey); in random_fortuna_read_concurrent()
742 random_fortuna_genbytes(buf, bytecount, newkey, &counter_copy, in random_fortuna_read_concurrent()
762 uint8_t newkey[RANDOM_KEYSIZE]; in random_fortuna_read() local
[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/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()
171 if (!TEST_true(OSSL_CMP_CTX_set1_pkey(fixture->cmp_ctx, newkey)) in test_cmp_create_ir_protection_fails()
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()
[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 Dsendmail151 -config openssl.cnf -newkey rsa:2048 >/dev/null 2>&1 &&
154 openssl req -batch -nodes -new -x509 -keyout newkey.pem \
156 -newkey rsa:2048 >/dev/null 2>&1 &&
159 openssl x509 -x509toreq -in newreq.pem -signkey newkey.pem \
168 chmod 600 newkey.pem &&
171 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/crypto/openssl/test/recipes/25-test_eai_data/
H A Dkdc.sh10 openssl req -nodes -new -newkey rsa:2048 -keyout kdc-root-key.pem \
36 openssl req -nodes -new -newkey rsa:2048 -keyout kdc-key.pem \
/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()
687 get_key_material(libzfs_handle_t *hdl, boolean_t do_verify, boolean_t newkey, in get_key_material() argument
711 do_verify, newkey, &km, &kmlen); in get_key_material()
731 fsname, keyformat, newkey, &km, &kmlen)) != 0) in get_key_material()
[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()
89 ldns_key_set_flags(newkey, LDNS_KEY_ZONE_KEY); 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()
94 ldns_key_set_pubkey_owner(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.c2378 struct newkeys *newkey; in newkeys_to_blob() local
2381 if ((newkey = ssh->state->newkeys[mode]) == NULL) in newkeys_to_blob()
2383 enc = &newkey->enc; in newkeys_to_blob()
2384 mac = &newkey->mac; in newkeys_to_blob()
2385 comp = &newkey->comp; in newkeys_to_blob()
2448 struct newkeys *newkey = NULL; in newkeys_from_blob() local
2452 if ((newkey = calloc(1, sizeof(*newkey))) == NULL) { in newkeys_from_blob()
2461 enc = &newkey->enc; in newkeys_from_blob()
2462 mac = &newkey->mac; in newkeys_from_blob()
2463 comp = &newkey->comp; 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
606 openssl req -newkey rsa:2048 -keyout key.pem -out req.pem
610 openssl req -x509 -newkey rsa:2048 -keyout key.pem -out req.pem
699 -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>)
725 It is also used as a fallback for the B<-newkey> option with IR/CR/KUR messages.
805 This applies to all options specifying keys: B<-key>, B<-newkey>, and
1224 -newkey cl_key.pem -subject "/CN=MyName" \
1239 -newkey cl_key_new.pem -certout cl_cert.pem
1270 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>.
/freebsd/crypto/openssl/apps/
H A Dopenssl.cnf359 newkey = insta.priv.pem
374 key = $insta::newkey # insta.priv.pem

12