Home
last modified time | relevance | path

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

/freebsd-12-stable/sys/dev/random/
Dfortuna.c550 uint8_t newkey[static RANDOM_KEYSIZE], uint128_t *p_counter, in random_fortuna_genbytes()
608 randomdev_keystream(p_key, p_counter, newkey, in random_fortuna_genbytes()
610 randomdev_encrypt_init(p_key, newkey); in random_fortuna_genbytes()
655 randomdev_keystream(p_key, p_counter, newkey, RANDOM_KEYSIZE); in random_fortuna_genbytes()
656 randomdev_encrypt_init(p_key, newkey); in random_fortuna_genbytes()
675 uint8_t newkey[static RANDOM_KEYSIZE]) in random_fortuna_read_concurrent()
731 newkey, RANDOM_KEYSIZE); in random_fortuna_read_concurrent()
732 randomdev_encrypt_init(&fortuna_state.fs_key, newkey); in random_fortuna_read_concurrent()
740 random_fortuna_genbytes(buf, bytecount, newkey, &counter_copy, in random_fortuna_read_concurrent()
760 uint8_t newkey[RANDOM_KEYSIZE]; in random_fortuna_read() local
[all …]
/freebsd-12-stable/sys/kgssapi/krb5/
Dkcrypto_arcfour.c109 uint8_t *newkey) in arcfour_derive_key() argument
120 arcfour_hmac(ks->ks_key, L40, 14, newkey); in arcfour_derive_key()
121 memset(newkey + 7, 0xab, 9); in arcfour_derive_key()
123 arcfour_hmac(ks->ks_key, t, 4, newkey); in arcfour_derive_key()
140 uint8_t newkey[16]; in arcfour_encrypt() local
142 arcfour_derive_key(ks, 0, newkey); in arcfour_encrypt()
149 arcfour_hmac(newkey, ivec, ivlen, kk); in arcfour_encrypt()
152 rc4_init(&rs, newkey, 16); in arcfour_encrypt()
/freebsd-12-stable/usr.bin/newkey/
DMakefile5 PROG= newkey
6 SRCS= newkey.c generic.c update.c
10 MAN= newkey.8
/freebsd-12-stable/crypto/heimdal/kadmin/
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-12-stable/libexec/rc/rc.d/
Dsendmail132 -config openssl.cnf -newkey rsa:2048 >/dev/null 2>&1 &&
135 openssl req -batch -nodes -new -x509 -keyout newkey.pem \
137 -newkey rsa:2048 >/dev/null 2>&1 &&
140 openssl x509 -x509toreq -in newreq.pem -signkey newkey.pem \
149 chmod 600 newkey.pem &&
152 cp -p newkey.pem "$CERTDIR"/host.key &&
/freebsd-12-stable/contrib/opie/
Dopiekey.c140 struct opie_otpkey key, newkey; variable
271 if (opiekeycrunch(algorithm, &newkey, newseed, newsecret)) {
277 opiehash(&newkey, algorithm);
324 strcat(response, opiebtoh(buf, &newkey));
330 strcat(response, opiebtoe(buf, &newkey));
/freebsd-12-stable/usr.bin/chkey/
DMakefile5 .PATH: ${SRCTOP}/usr.bin/newkey
9 CFLAGS+= -I${SRCTOP}/usr.bin/newkey
/freebsd-12-stable/contrib/opie/libopie/
Dgenerator.c176 struct opie_otpkey newkey; variable
186 if (opiekeycrunch(algorithm, &newkey, newseed, secret))
190 opiehash(&newkey, algorithm);
202 strcat(response, opiebtoh(buf, &newkey));
/freebsd-12-stable/contrib/ldns/
Dkeys.c73 ldns_key *newkey; in ldns_key_new() local
75 newkey = LDNS_MALLOC(ldns_key); in ldns_key_new()
76 if (!newkey) { in ldns_key_new()
80 ldns_key_set_use(newkey, true); in ldns_key_new()
81 ldns_key_set_flags(newkey, LDNS_KEY_ZONE_KEY); in ldns_key_new()
82 ldns_key_set_origttl(newkey, 0); in ldns_key_new()
83 ldns_key_set_keytag(newkey, 0); in ldns_key_new()
84 ldns_key_set_inception(newkey, 0); in ldns_key_new()
85 ldns_key_set_expiration(newkey, 0); in ldns_key_new()
86 ldns_key_set_pubkey_owner(newkey, NULL); in ldns_key_new()
[all …]
/freebsd-12-stable/sys/netinet/
Dtcp_fastopen.c518 uint8_t newkey[TCP_FASTOPEN_KEY_LEN]; in tcp_fastopen_autokey_locked() local
520 arc4rand(newkey, TCP_FASTOPEN_KEY_LEN, 0); in tcp_fastopen_autokey_locked()
521 tcp_fastopen_addkey_locked(newkey); in tcp_fastopen_autokey_locked()
762 uint8_t newkey[TCP_FASTOPEN_KEY_LEN]; in sysctl_net_inet_tcp_fastopen_setkey() local
768 if (req->newlen != sizeof(newkey)) in sysctl_net_inet_tcp_fastopen_setkey()
770 error = SYSCTL_IN(req, newkey, sizeof(newkey)); in sysctl_net_inet_tcp_fastopen_setkey()
775 tcp_fastopen_addkey_locked(newkey); in sysctl_net_inet_tcp_fastopen_setkey()
/freebsd-12-stable/crypto/openssl/apps/
Dreq.c243 long newkey = -1; in req_main() local
575 if (!NCONF_get_number(req_conf, SECTION, BITS, &newkey)) { in req_main()
576 newkey = DEFAULT_KEY_LENGTH; in req_main()
580 genctx = set_keygen_ctx(keyalg, &pkey_type, &newkey, in req_main()
586 if (newkey < MIN_KEY_LENGTH in req_main()
590 MIN_KEY_LENGTH, newkey); in req_main()
594 if (pkey_type == EVP_PKEY_RSA && newkey > OPENSSL_RSA_MAX_MODULUS_BITS) in req_main()
598 OPENSSL_RSA_MAX_MODULUS_BITS, newkey); in req_main()
601 if (pkey_type == EVP_PKEY_DSA && newkey > OPENSSL_DSA_MAX_MODULUS_BITS) in req_main()
605 OPENSSL_DSA_MAX_MODULUS_BITS, newkey); in req_main()
[all …]
/freebsd-12-stable/sys/dev/kbd/
Dkbd.c1033 key_change_ok(struct keyent_t *oldkey, struct keyent_t *newkey, struct thread *td) in key_change_ok() argument
1044 if (oldkey->map[i] != newkey->map[i]) in key_change_ok()
1046 if (oldkey->spcl != newkey->spcl) in key_change_ok()
1048 if (oldkey->flgs != newkey->flgs) in key_change_ok()
1059 if (!RESTRICTED_KEY(oldkey, i) && !RESTRICTED_KEY(newkey, i)) in key_change_ok()
1061 if ((oldkey->spcl & (0x80 >> i)) == (newkey->spcl & (0x80 >> i)) in key_change_ok()
1062 && oldkey->map[i] == newkey->map[i]) in key_change_ok()
1114 fkey_change_ok(fkeytab_t *oldkey, fkeyarg_t *newkey, struct thread *td) in fkey_change_ok() argument
1119 if (oldkey->len != newkey->flen || in fkey_change_ok()
1120 bcmp(oldkey->str, newkey->keydef, oldkey->len) != 0) in fkey_change_ok()
/freebsd-12-stable/usr.sbin/ndiscvt/
Dinf.c117 char newkey[256]; in find_assign() local
122 bzero(newkey, sizeof(newkey)); in find_assign()
123 strncpy(newkey, k + 1, strlen(k) - 2); in find_assign()
124 k = newkey; in find_assign()
/freebsd-12-stable/crypto/openssh/
Dpacket.c2236 struct newkeys *newkey; in newkeys_to_blob() local
2239 if ((newkey = ssh->state->newkeys[mode]) == NULL) in newkeys_to_blob()
2241 enc = &newkey->enc; in newkeys_to_blob()
2242 mac = &newkey->mac; in newkeys_to_blob()
2243 comp = &newkey->comp; in newkeys_to_blob()
2306 struct newkeys *newkey = NULL; in newkeys_from_blob() local
2310 if ((newkey = calloc(1, sizeof(*newkey))) == NULL) { in newkeys_from_blob()
2319 enc = &newkey->enc; in newkeys_from_blob()
2320 mac = &newkey->mac; in newkeys_from_blob()
2321 comp = &newkey->comp; in newkeys_from_blob()
[all …]
/freebsd-12-stable/crypto/openssl/doc/man1/
DCA.pl.pod50 "newkey.pem" and the request written to the file "newreq.pem".
56 "newkey.pem" and the request written to the file "newreq.pem".
161 openssl req -x509 -newkey dsa:dsap.pem -keyout cacert.pem -out cacert.pem
172 openssl req -out newreq.pem -newkey dsa:dsap.pem
Dreq.pod26 [B<-newkey rsa:bits>]
27 [B<-newkey alg:file>]
84 options (B<-new> and B<-newkey>) are not specified.
155 =item B<-newkey arg>
160 in size. If B<nbits> is omitted, i.e. B<-newkey rsa> specified,
163 All other algorithms support the B<-newkey alg:file> form, where file may be
368 the B<-newkey> option. The smallest accepted key size is 512 bits. If
531 openssl req -newkey rsa:2048 -keyout key.pem -out req.pem
535 openssl req -x509 -newkey rsa:2048 -keyout key.pem -out req.pem
617 -newkey rsa:2048 -keyout key.pem -out req.pem
/freebsd-12-stable/usr.bin/
DMakefile255 SUBDIR.${MK_OPENSSL}+= newkey
/freebsd-12-stable/sys/ofed/include/rdma/
Dib_verbs.h3222 static inline void ib_update_fast_reg_key(struct ib_mr *mr, u8 newkey) in ib_update_fast_reg_key() argument
3224 mr->lkey = (mr->lkey & 0xffffff00) | newkey; in ib_update_fast_reg_key()
3225 mr->rkey = (mr->rkey & 0xffffff00) | newkey; in ib_update_fast_reg_key()
/freebsd-12-stable/contrib/gcc/
Dsys-protos.h768 extern int newkey(char *, int, int);
/freebsd-12-stable/targets/pseudo/userland/
DMakefile.depend285 usr.bin/newkey \
/freebsd-12-stable/crypto/openssl/
DCHANGES6943 *) Let 'openssl req' fail if an argument to '-newkey' is not
7163 - 'openssl req' now has a '-newkey ecdsa:file' option;
13738 *) Don't blow it for numeric -newkey arguments to apps/req.