Searched refs:pubkey (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-9.3-release/crypto/openssl/crypto/asn1/
H A Dx_spki.c70 ASN1_SIMPLE(NETSCAPE_SPKAC, pubkey, X509_PUBKEY),
H A Dx_req.c98 ASN1_SIMPLE(X509_REQ_INFO, pubkey, X509_PUBKEY),
H A Dt_spki.c81 i = OBJ_obj2nid(spki->spkac->pubkey->algor->algorithm);
84 pkey = X509_PUBKEY_get(spki->spkac->pubkey);
H A Dx_pubkey.c74 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; local
75 EVP_PKEY_free(pubkey->pkey);
H A Dt_req.c142 if (i2a_ASN1_OBJECT(bp, ri->pubkey->algor->algorithm) <= 0)
/freebsd-9.3-release/crypto/openssl/crypto/x509/
H A Dx509rset.c84 return (X509_PUBKEY_set(&x->req_info->pubkey, pkey));
H A Dx509spki.c68 return (X509_PUBKEY_set(&(x->spkac->pubkey), pkey));
75 return (X509_PUBKEY_get(x->spkac->pubkey));
/freebsd-9.3-release/contrib/wpa/src/wps/
H A Dwps_attr_build.c27 struct wpabuf *pubkey; local
36 pubkey = wpabuf_dup(wps->wps->dh_pubkey);
41 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey);
42 pubkey = wpabuf_zeropad(pubkey, 192);
44 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) {
47 wpabuf_free(pubkey);
52 wpabuf_put_be16(msg, wpabuf_len(pubkey));
53 wpabuf_put_buf(msg, pubkey);
57 wps->dh_pubkey_r = pubkey;
[all...]
H A Dwps_common.c67 struct wpabuf *pubkey, *dh_shared; local
78 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r;
79 if (pubkey == NULL) {
84 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey);
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Ddnssec.c677 dst_key_t *pubkey = NULL; local
693 pubkey = NULL;
695 RETERR(dns_dnssec_keyfromrdata(name, &rdata, mctx, &pubkey));
696 dst_key_setttl(pubkey, rdataset.ttl);
698 if (!is_zone_key(pubkey) ||
699 (dst_key_flags(pubkey) & DNS_KEYTYPE_NOAUTH) != 0)
702 if (!dns_name_equal(name, dst_key_name(pubkey)))
705 result = dst_key_fromfile(dst_key_name(pubkey),
706 dst_key_id(pubkey),
707 dst_key_alg(pubkey),
1530 dst_key_t *pubkey = NULL, *privkey = NULL; local
[all...]
H A Dopensslecdsa_link.c492 const EC_POINT *pubkey; local
502 pubkey = EC_KEY_get0_public_key(pubeckey);
503 if (pubkey == NULL)
505 if (EC_KEY_set_public_key(eckey, pubkey) != 1)
522 const EC_POINT *pubkey; local
554 pubkey = EC_KEY_get0_public_key(pubeckey);
555 if (pubkey == NULL)
557 if (EC_KEY_set_public_key(eckey, pubkey) != 1)
H A Ddst_api.c505 dst_key_t *pubkey = NULL, *key = NULL; local
535 result = dst_key_read_public(newfilename, type, mctx, &pubkey);
541 (pubkey->key_flags & DNS_KEYFLAG_TYPEMASK) == DNS_KEYTYPE_NOKEY) {
542 result = computeid(pubkey);
544 dst_key_free(&pubkey);
548 *keyp = pubkey;
552 result = algorithm_status(pubkey->key_alg);
554 dst_key_free(&pubkey);
558 key = get_key_struct(pubkey->key_name, pubkey
[all...]
H A Dtkey.c280 dst_key_t *pubkey = NULL; local
320 pubkey = NULL;
322 msg->mctx, &pubkey);
327 if (dst_key_alg(pubkey) == DNS_KEYALG_DH) {
328 if (dst_key_paramcompare(pubkey, tctx->dhkey))
336 dst_key_free(&pubkey);
371 result = dst_key_computesecret(pubkey, tctx->dhkey, shared);
377 dst_key_free(&pubkey);
420 if (pubkey != NULL)
421 dst_key_free(&pubkey);
[all...]
/freebsd-9.3-release/crypto/openssl/demos/
H A Dspkigen.c164 X509_PUBKEY_free(x->spkac->pubkey);
165 x->spkac->pubkey = pk;
/freebsd-9.3-release/crypto/openssl/crypto/x509v3/
H A Dv3_skey.c127 pk = ctx->subject_req->req_info->pubkey->public_key;
/freebsd-9.3-release/crypto/openssl/apps/
H A Dspkac.c88 int verify = 0, noout = 0, pubkey = 0; local
151 else if (strcmp(*argv, "-pubkey") == 0)
152 pubkey = 1;
174 BIO_printf(bio_err, " -pubkey output public key\n");
297 if (pubkey)
H A Dx509.c112 " -pubkey - output the public key\n",
187 int x509req = 0, days = DEF_DAYS, modulus = 0, pubkey = 0; local
370 else if (strcmp(*argv, "-pubkey") == 0)
371 pubkey = ++num;
532 (req->req_info->pubkey == NULL) ||
533 (req->req_info->pubkey->public_key == NULL) ||
534 (req->req_info->pubkey->public_key->data == NULL)) {
723 } else if (pubkey == i) {
/freebsd-9.3-release/usr.sbin/pkg/
H A Dpkg.c68 struct pubkey { struct
560 static struct pubkey *
563 struct pubkey *pk;
580 pk = calloc(1, sizeof(struct pubkey));
664 struct pubkey *pk;
665 const char *pubkey; local
669 pubkey = NULL;
671 if (config_string(PUBKEY, &pubkey) != 0) {
682 printf("Verifying signature with public key %s... ", pubkey);
683 if (rsa_verify_cert(fd_pkg, pubkey, NUL
[all...]
/freebsd-9.3-release/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c416 struct wpabuf *pubkey = NULL, *privkey = NULL; local
438 pubkey = wpabuf_alloc(publen);
439 if (pubkey == NULL)
446 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen));
450 *publ = pubkey;
454 wpabuf_free(pubkey);
/freebsd-9.3-release/contrib/telnet/libtelnet/
H A Drsaencpwd.c280 * get pubkey
323 char chalkey[160], pubkey[128], *ptr; local
362 memmove(pubkey, ptr, pubkey_len);
367 r = init_rsa_encpwd(&token, user_passwd, challenge, challenge_len, pubkey);
/freebsd-9.3-release/crypto/heimdal/appl/telnet/libtelnet/
H A Drsaencpwd.c280 * get pubkey
323 char chalkey[160], pubkey[128], *ptr; local
362 memmove(pubkey, ptr, pubkey_len);
367 r = init_rsa_encpwd(&token, user_passwd, challenge, challenge_len, pubkey);
/freebsd-9.3-release/secure/usr.sbin/sshd/
H A DMakefile12 auth2-none.c auth2-passwd.c auth2-pubkey.c \
/freebsd-9.3-release/crypto/openssh/
H A Dsshd.c1418 Key *pubkey; local
1723 pubkey = key_load_public(options.host_key_files[i], NULL);
1725 sensitive_data.host_pubkeys[i] = pubkey;
1727 if (key == NULL && pubkey != NULL && pubkey->type != KEY_RSA1 &&
1731 keytype = pubkey->type;
1755 key_type(key ? key : pubkey));
2478 sshd_hostkey_sign(Key *privkey, Key *pubkey, u_char **signature, u_int *slen, argument
2485 if (mm_key_sign(pubkey, signature, slen, data, dlen) < 0)
2488 if (ssh_agent_sign(auth_conn, pubkey, signatur
[all...]
/freebsd-9.3-release/crypto/openssl/engines/
H A De_capi.c580 unsigned char *pubkey = NULL; local
592 pubkey = OPENSSL_malloc(len);
594 if (!pubkey)
597 if (!CryptExportKey(key->key, 0, PUBLICKEYBLOB, 0, pubkey, &len)) {
603 bh = (BLOBHEADER *) pubkey;
701 if (pubkey)
702 OPENSSL_free(pubkey);
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Dntp_crypto.c162 struct value pubkey; /* public key */ variable in typeref:struct:value
1321 len = crypto_send(fp, &pubkey, start);
1817 * pubkey public key
1848 if (pubkey.vallen != 0) {
1849 pubkey.tstamp = hostval.tstamp;
1850 pubkey.siglen = 0;
1851 if (pubkey.sig == NULL)
1852 pubkey.sig = emalloc(sign_siglen);
1854 EVP_SignUpdate(ctx, (u_char *)&pubkey, 12);
1855 EVP_SignUpdate(ctx, pubkey
[all...]

Completed in 262 milliseconds

12