Home
last modified time | relevance | path

Searched refs:private_key (Results 1 – 25 of 40) sorted by relevance

12

/freebsd-10-stable/crypto/heimdal/lib/hx509/
Dcollector.c36 struct private_key { struct
38 hx509_private_key private_key; member
47 struct private_key **data; argument
104 free_private_key(struct private_key *key) in free_private_key()
107 if (key->private_key) in free_private_key()
108 hx509_private_key_free(&key->private_key); in free_private_key()
117 hx509_private_key private_key, in _hx509_collector_private_key_add() argument
121 struct private_key *key; in _hx509_collector_private_key_add()
143 if (private_key) { in _hx509_collector_private_key_add()
144 key->private_key = private_key; in _hx509_collector_private_key_add()
[all …]
Dcrypto.c77 } private_key; member
452 sig->length = ECDSA_size(signer->private_key.ecdsa); in ecdsa_create_signature()
464 sig->data, &siglen, signer->private_key.ecdsa); in ecdsa_create_signature()
502 group = EC_KEY_get0_group(signer->private_key.ecdsa); in ecdsa_available()
722 sig->length = RSA_size(signer->private_key.rsa); in rsa_create_signature()
732 signer->private_key.rsa, in rsa_create_signature()
756 hx509_private_key private_key) in rsa_private_key_import() argument
762 private_key->private_key.rsa = in rsa_private_key_import()
764 if (private_key->private_key.rsa == NULL) { in rsa_private_key_import()
769 private_key->signature_alg = ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION; in rsa_private_key_import()
[all …]
Dcert.c81 hx509_private_key private_key; member
231 (*cert)->private_key = NULL; in hx509_cert_init()
310 _hx509_cert_assign_key(hx509_cert cert, hx509_private_key private_key) in _hx509_cert_assign_key() argument
312 if (cert->private_key) in _hx509_cert_assign_key()
313 hx509_private_key_free(&cert->private_key); in _hx509_cert_assign_key()
314 cert->private_key = _hx509_private_key_ref(private_key); in _hx509_cert_assign_key()
343 if (cert->private_key) in hx509_cert_free()
344 hx509_private_key_free(&cert->private_key); in hx509_cert_free()
1580 return p->private_key; in _hx509_cert_private_key()
1586 return p->private_key ? 1 : 0; in hx509_cert_have_private_key()
[all …]
Dhxtool.c1751 hx509_private_key private_key = NULL; in hxtool_ca() local
1812 ret = read_private_key(opt->ca_private_key_string, &private_key); in hxtool_ca()
1816 ret = hx509_private_key2SPKI(context, private_key, &spki); in hxtool_ca()
1821 cert_key = private_key; in hxtool_ca()
1866 private_key = cert_key; in hxtool_ca()
1975 ret = hx509_ca_sign_self(context, tbs, private_key, &cert); in hxtool_ca()
2016 if (private_key != cert_key) in hxtool_ca()
2017 hx509_private_key_free(&private_key); in hxtool_ca()
Dks_p11.c97 CK_OBJECT_HANDLE private_key; member
130 CK_OBJECT_HANDLE key = p11rsa->private_key; in p11_rsa_private_encrypt()
168 CK_OBJECT_HANDLE key = p11rsa->private_key; in p11_rsa_private_decrypt()
638 p11rsa->private_key = object; in collect_private_key()
/freebsd-10-stable/crypto/openssl/crypto/asn1/
Dn_pkey.c74 ASN1_OCTET_STRING *private_key; member
99 ASN1_SIMPLE(NETSCAPE_PKEY, private_key, ASN1_OCTET_STRING)
150 pkey->private_key->length = rsalen; in i2d_RSA_NET()
176 pkey->private_key->data = zz; in i2d_RSA_NET()
193 OPENSSL_cleanse(pkey->private_key->data, rsalen); in i2d_RSA_NET()
326 zz = pkey->private_key->data; in d2i_RSA_NET_2()
327 if ((ret = d2i_RSAPrivateKey(a, &zz, pkey->private_key->length)) == NULL) { in d2i_RSA_NET_2()
/freebsd-10-stable/contrib/wpa/src/crypto/
Dtls_openssl.c67 EVP_PKEY *private_key; /* the private key if using engine */ member
839 conn->private_key = ENGINE_load_private_key(conn->engine, in tls_engine_init()
841 if (!conn->private_key) { in tls_engine_init()
871 if (conn->private_key) { in tls_engine_init()
872 EVP_PKEY_free(conn->private_key); in tls_engine_init()
873 conn->private_key = NULL; in tls_engine_init()
887 if (conn->private_key) { in tls_engine_deinit()
888 EVP_PKEY_free(conn->private_key); in tls_engine_deinit()
889 conn->private_key = NULL; in tls_engine_deinit()
1780 static int tls_read_pkcs12(SSL_CTX *ssl_ctx, SSL *ssl, const char *private_key, in tls_read_pkcs12() argument
[all …]
Dtls_gnutls.c567 if (params->client_cert && params->private_key) { in tls_connection_set_params()
570 conn->xcred, params->client_cert, params->private_key, in tls_connection_set_params()
577 params->private_key, GNUTLS_X509_FMT_DER); in tls_connection_set_params()
585 } else if (params->private_key) { in tls_connection_set_params()
591 conn->xcred, params->private_key, GNUTLS_X509_FMT_DER, in tls_connection_set_params()
678 if (params->client_cert && params->private_key) { in tls_global_set_params()
682 params->private_key, GNUTLS_X509_FMT_PEM); in tls_global_set_params()
688 params->private_key, GNUTLS_X509_FMT_DER); in tls_global_set_params()
696 } else if (params->private_key) { in tls_global_set_params()
702 global->xcred, params->private_key, in tls_global_set_params()
Dtls_internal.c187 if (tlsv1_set_private_key(cred, params->private_key, in tls_connection_set_params()
247 if (tlsv1_set_private_key(cred, params->private_key, in tls_global_set_params()
Dtls.h139 const char *private_key; member
/freebsd-10-stable/contrib/wpa/wpa_supplicant/
Dwpa_supplicant.conf898 private_key="/etc/cert/user.prv"
1012 private_key="/etc/cert/user.prv"
1118 private_key="/etc/cert/user.prv"
Dinterworking.c585 (cred->private_key == NULL || in nai_realm_find_eap()
586 cred->private_key[0] == '\0'))) in nai_realm_find_eap()
594 if (cred->private_key && cred->private_key[0] && in nai_realm_find_eap()
1090 if (cred->private_key && in interworking_set_eap_params()
1091 os_strncmp(cred->private_key, "keystore://", 11) == 0) { in interworking_set_eap_params()
1095 cred->private_key + 11) < 0 || in interworking_set_eap_params()
1100 if (cred->private_key && cred->private_key[0] && in interworking_set_eap_params()
1101 wpa_config_set_quoted(ssid, "private_key", cred->private_key) < 0) in interworking_set_eap_params()
Dconfig.h133 char *private_key; member
Dconfig_file.c641 STR(private_key); in wpa_config_write_network()
718 if (cred->private_key) in wpa_config_write_cred()
719 fprintf(f, "\tprivate_key=\"%s\"\n", cred->private_key); in wpa_config_write_cred()
/freebsd-10-stable/contrib/wpa/src/tls/
Dtlsv1_cred.c318 const char *private_key, in tlsv1_set_private_key() argument
331 if (private_key) { in tlsv1_set_private_key()
336 buf = (u8 *) os_readfile(private_key, &len); in tlsv1_set_private_key()
339 private_key); in tlsv1_set_private_key()
Drsa.c18 int private_key; /* whether private key is set */ member
137 key->private_key = 1; in crypto_rsa_import_private_key()
249 if (use_private && !key->private_key) in crypto_rsa_exptmod()
Dtlsv1_cred.h33 const char *private_key,
/freebsd-10-stable/contrib/wpa/wpa_supplicant/examples/
Dwpa2-eap-ccmp.conf13 private_key="/etc/cert/user.p12"
/freebsd-10-stable/contrib/wpa/src/ap/
Dauthsrv.c148 params.private_key = hapd->conf->private_key; in authsrv_init()
/freebsd-10-stable/contrib/wpa/src/eap_peer/
Deap_config.h153 u8 *private_key; member
Deap_tls_common.c76 params->private_key = (char *) config->private_key; in eap_tls_params_from_conf1()
97 params->private_key = (char *) config->private_key2; in eap_tls_params_from_conf2()
147 eap_tls_check_blob(sm, &params->private_key, in eap_tls_params_from_conf()
Deap_tls.c34 ((sm->init_phase2 ? config->private_key2 : config->private_key) in eap_tls_init()
56 } else if (config->private_key && !config->private_key_passwd) in eap_tls_init()
/freebsd-10-stable/crypto/openssl/doc/apps/
Dtsget.pod15 [B<-k> private_key.pem]
81 =item B<-k> private_key.pem
84 <private_key.pem> must contain the private key of the user. The private key
/freebsd-10-stable/etc/rc.d/
Dsendmail80 private_key = \$dir/cakey.pem
/freebsd-10-stable/crypto/openssl/doc/crypto/
DASN1_generate_nconf.pod199 asn1=SEQUENCE:private_key
200 [private_key]

12