Home
last modified time | relevance | path

Searched refs:privkey (Results 1 – 17 of 17) sorted by relevance

/openbsd/usr.sbin/pkg_add/OpenBSD/
H A DSigner.pm50 my $o = bless {privkey => $p[1]}, $class;
56 my $privkey = $signer->{privkey};
64 $state->system(OpenBSD::Paths->signify, '-zS', '-s', $privkey, '-m', $url, '-x', $tmp);
/openbsd/usr.bin/snmp/
H A Dusm.c49 char *privkey; member
240 encpdu = usm_crypt(usm->cipher, 1, usm->privkey, usmcookie, serialpdu, in usm_encpdu()
465 if ((rawpdu = usm_crypt(usm->cipher, 0, usm->privkey, usmcookie, in usm_decpdu()
494 free(usm->privkey); in usm_free()
550 if ((usm->privkey = usm_passwd2mkey(usm->digest, key)) == NULL) in usm_setpriv()
562 usm->privkey = lkey; in usm_setpriv()
594 mkey = usm->privkey; in usm_setengineid()
595 if ((usm->privkey = usm_mkey2lkey(usm, usm->digest, in usm_setengineid()
597 usm->privkey = mkey; in usm_setengineid()
H A Dsnmpc.c122 char *privkey = NULL; in main() local
228 privkey = snmpc_hex2bin(optarg, &privkeylen); in main()
229 if (privkey == NULL) { in main()
440 privkey = optarg; in main()
441 privkeylen = strlen(privkey); in main()
494 if (privkey == NULL) in main()
496 if (usm_setpriv(sec, cipher, privkey, privkeylen, in main()
/openbsd/sbin/iked/
H A Dconfig.c1015 struct iked_id privkey; in config_setkeys() local
1020 memset(&privkey, 0, sizeof(privkey)); in config_setkeys()
1034 if (ca_privkey_serialize(key, &privkey) != 0) { in config_setkeys()
1043 iov[0].iov_base = &privkey; in config_setkeys()
1044 iov[0].iov_len = sizeof(privkey); in config_setkeys()
1045 iov[1].iov_base = ibuf_data(privkey.id_buf); in config_setkeys()
1046 iov[1].iov_len = ibuf_size(privkey.id_buf); in config_setkeys()
1069 ibuf_free(privkey.id_buf); in config_setkeys()
H A Ddh.c560 const BIGNUM *privkey; in ec_create_shared() local
566 (privkey = EC_KEY_get0_private_key(group->ec)) == NULL) in ec_create_shared()
587 if (!EC_POINT_mul(ecgroup, secretp, NULL, exchangep, privkey, NULL)) in ec_create_shared()
H A Dca.c161 fatalx("ca: failed to get auth method for privkey"); in ca_getkey()
1577 ca_privkey_to_method(struct iked_id *privkey) in ca_privkey_to_method() argument
1584 switch (privkey->id_type) { in ca_privkey_to_method()
1589 if ((rawcert = BIO_new_mem_buf(ibuf_data(privkey->id_buf), in ca_privkey_to_method()
1590 ibuf_size(privkey->id_buf))) == NULL) in ca_privkey_to_method()
1610 print_map(privkey->id_type, ikev2_cert_map), in ca_privkey_to_method()
/openbsd/regress/usr.bin/ssh/
H A Dsshsig.sh47 privkey=${OBJ}/`basename $t -cert.pub`
258 ${SSHADD} ${privkey} > /dev/null 2>&1 || fail "ssh-add failed"
261 mv ${privkey} ${privkey}.tmp
279 mv ${privkey}.tmp ${privkey}
/openbsd/usr.sbin/snmpd/
H A Dusm.c627 u_char *privkey; in usm_crypt() local
637 privkey = (u_char *)msg->sm_user->uu_privkey; in usm_crypt()
639 assert(privkey != NULL); in usm_crypt()
645 iv[i] = msg->sm_salt[i] ^ privkey[SNMP_USM_SALTLEN + i]; in usm_crypt()
662 if (!EVP_CipherInit(ctx, cipher, privkey, iv, do_encrypt)) { in usm_crypt()
/openbsd/lib/libkeynote/testsuite/
H A Dopenssl.cnf9 default_keyfile = privkey.pem
/openbsd/lib/libcrypto/
H A Dopenssl.cnf4 #default_keyfile = privkey.pem
/openbsd/usr.bin/ssh/
H A Dssh-keygen.c926 &privkey, &comment)) != 0) in fingerprint_private()
929 if (pubkey == NULL && privkey == NULL) in fingerprint_private()
934 sshkey_free(privkey); in fingerprint_private()
2502 struct sshkey *ret = NULL, *privkey = NULL; in load_sign_key() local
2527 } else if (privkey == NULL) in load_sign_key()
2528 privkey = load_identity(privpath, NULL); in load_sign_key()
2550 ret = privkey; in load_sign_key()
2551 privkey = NULL; in load_sign_key()
2553 sshkey_free(privkey); in load_sign_key()
2738 signkey = privkey; in sig_sign()
[all …]
H A Dssh_api.c573 _ssh_host_key_sign(struct ssh *ssh, struct sshkey *privkey, in _ssh_host_key_sign() argument
577 return sshkey_sign(privkey, signature, slen, data, dlen, in _ssh_host_key_sign()
H A Dsshd-session.c1258 sshd_hostkey_sign(struct ssh *ssh, struct sshkey *privkey, in sshd_hostkey_sign() argument
1262 if (privkey) { in sshd_hostkey_sign()
1263 if (mm_sshkey_sign(ssh, privkey, signature, slenp, in sshd_hostkey_sign()
/openbsd/sbin/isakmpd/
H A Ddh.c471 const BIGNUM *privkey; in ec_create_shared() local
477 (privkey = EC_KEY_get0_private_key(group->ec)) == NULL) in ec_create_shared()
498 if (!EC_POINT_mul(ecgroup, secretp, NULL, exchangep, privkey, NULL)) in ec_create_shared()
/openbsd/lib/libcrypto/conf/
H A Dssleay.cnf52 default_keyfile = privkey.pem
/openbsd/usr.sbin/ikectl/
H A Dikeca.cnf24 #default_keyfile = privkey.pem
/openbsd/lib/libssl/doc/
H A Dopenssl.cnf105 default_keyfile = privkey.pem