Home
last modified time | relevance | path

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

/external/openssl/crypto/dsa/
Ddsa_ameth.c198 ASN1_INTEGER *privkey = NULL; in dsa_priv_decode() local
236 privkey = t2->value.integer; in dsa_priv_decode()
241 if (!(privkey=d2i_ASN1_INTEGER(NULL, &p, pklen))) in dsa_priv_decode()
243 if (privkey->type == V_ASN1_NEG_INTEGER) in dsa_priv_decode()
246 ASN1_INTEGER_free(privkey); in dsa_priv_decode()
247 if (!(privkey=d2i_ASN1_UINTEGER(NULL, &q, pklen))) in dsa_priv_decode()
260 if (!(dsa->priv_key = ASN1_INTEGER_to_BN(privkey, NULL))) in dsa_priv_decode()
288 ASN1_INTEGER_free(privkey); in dsa_priv_decode()
296 if (privkey) in dsa_priv_decode()
297 ASN1_INTEGER_free(privkey); in dsa_priv_decode()
/external/ipsec-tools/src/racoon/
Dprivsep.c340 vchar_t *privkey; in privsep_init() local
356 if ((privkey = eay_get_pkcs1privkey(bufs[0])) == NULL){ in privsep_init()
361 reply->bufs.buflen[0] = privkey->l; in privsep_init()
362 reply->hdr.ac_len = sizeof(*reply) + privkey->l; in privsep_init()
371 memcpy(reply + 1, privkey->v, privkey->l); in privsep_init()
372 vfree(privkey); in privsep_init()
706 vchar_t *privkey; local
736 if ((privkey = vmalloc(len - sizeof(*msg))) == NULL)
739 memcpy(privkey->v, msg + 1, privkey->l);
741 return privkey;
Doakley.c1849 vchar_t *privkey = NULL; local
1867 privkey = privsep_eay_get_pkcs1privkey(path);
1868 if (privkey == NULL) {
1874 plogdump(LLV_DEBUG2, privkey->v, privkey->l);
1876 iph1->sig = eay_get_x509sign(iph1->hash, privkey);
1902 if (privkey != NULL)
1903 vfree(privkey);
Dcrypto_openssl.c1110 eay_get_x509sign(src, privkey) in eay_get_x509sign() argument
1111 vchar_t *src, *privkey; in eay_get_x509sign()
1114 u_char *bp = (unsigned char *) privkey->v;
1120 evp = d2i_PrivateKey(EVP_PKEY_RSA, NULL, (void *)&bp, privkey->l);
/external/openssl/crypto/dh/
Ddh_ameth.c192 ASN1_INTEGER *privkey = NULL; in dh_priv_decode() local
204 if (!(privkey=d2i_ASN1_INTEGER(NULL, &p, pklen))) in dh_priv_decode()
214 if (!(dh->priv_key = ASN1_INTEGER_to_BN(privkey, NULL))) in dh_priv_decode()
225 ASN1_INTEGER_free(privkey); in dh_priv_decode()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c463 struct wpabuf *pubkey = NULL, *privkey = NULL; in dh5_init() local
489 privkey = wpabuf_alloc(privlen); in dh5_init()
490 if (privkey == NULL) in dh5_init()
494 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init()
496 *priv = privkey; in dh5_init()
502 wpabuf_free(privkey); in dh5_init()
/external/openssl/crypto/conf/
Dssleay.cnf52 default_keyfile = privkey.pem
/external/wpa_supplicant_8/src/wps/
Dwps_common.c750 struct wpabuf **privkey, in wps_nfc_token_gen() argument
778 wpabuf_free(*privkey); in wps_nfc_token_gen()
779 *privkey = priv; in wps_nfc_token_gen()
Dwps.h855 struct wpabuf **privkey,
/external/chromium/net/socket/
Dssl_client_socket_openssl.cc549 EVP_PKEY* privkey = OpenSSLPrivateKeyStore::GetInstance()->FetchPrivateKey( in ClientCertRequestCallback() local
552 if (privkey) { in ClientCertRequestCallback()
553 CRYPTO_add(&privkey->references, 1, CRYPTO_LOCK_EVP_PKEY); in ClientCertRequestCallback()
558 *pkey = privkey; in ClientCertRequestCallback()
Dssl_client_socket_nss.cc2203 SECKEYPrivateKey* privkey = PK11_FindKeyByAnyCert(cert, wincx); in ClientAuthHandler() local
2204 if (privkey) { in ClientAuthHandler()
2209 *result_private_key = privkey; in ClientAuthHandler()
/external/openssl/apps/
Dopenssl.cnf107 default_keyfile = privkey.pem