HomeSort by relevance Sort by last modified time
    Searched defs:pkey (Results 1 - 25 of 75) sorted by null

1 2 3

  /external/chromium/net/base/
keygen_handler_openssl.cc 20 EVP_PKEY* pkey = key->key(); local
23 OpenSSLPrivateKeyStore::GetInstance()->StorePrivateKey(url_, pkey);
29 NETSCAPE_SPKI_set_pubkey(spki.get(), pkey);
32 NETSCAPE_SPKI_sign(spki.get(), pkey, EVP_md5());
  /external/openssl/crypto/asn1/
t_spki.c 75 EVP_PKEY *pkey; local
83 pkey = X509_PUBKEY_get(spki->spkac->pubkey);
84 if(!pkey) BIO_printf(out, " Unable to load public key\n");
87 EVP_PKEY_print_public(out, pkey, 4, NULL);
88 EVP_PKEY_free(pkey);
a_sign.c 131 ASN1_BIT_STRING *signature, char *data, EVP_PKEY *pkey,
176 outll=outl=EVP_PKEY_size(pkey);
190 (unsigned int *)&outl,pkey))
217 ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey,
222 if (!EVP_DigestSignInit(&ctx, NULL, type, NULL, pkey))
236 EVP_PKEY *pkey; local
243 pkey = EVP_PKEY_CTX_get0_pkey(ctx->pctx);
245 if (!type || !pkey)
251 if (pkey->ameth->item_sign)
253 rv = pkey->ameth->item_sign(ctx, it, asn, algor1, algor2
    [all...]
n_pkey.c 127 NETSCAPE_PKEY *pkey = NULL; local
136 if ((pkey=NETSCAPE_PKEY_new()) == NULL) goto err;
138 pkey->version = 0;
140 pkey->algor->algorithm=OBJ_nid2obj(NID_rsaEncryption);
141 if ((pkey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err;
142 pkey->algor->parameter->type=V_ASN1_NULL;
150 pkey->private_key->length=rsalen;
152 pkeylen=i2d_NETSCAPE_PKEY(pkey,NULL);
165 NETSCAPE_PKEY_free(pkey);
178 pkey->private_key->data = zz
289 NETSCAPE_PKEY *pkey=NULL; local
    [all...]
t_req.c 97 EVP_PKEY *pkey; local
145 pkey=X509_REQ_get_pubkey(x);
146 if (pkey == NULL)
153 EVP_PKEY_print_public(bp, pkey, 16, NULL);
154 EVP_PKEY_free(pkey);
  /external/openssl/crypto/engine/
eng_pkey.c 99 EVP_PKEY *pkey; local
122 pkey = e->load_privkey(e, key_id, ui_method, callback_data);
123 if (!pkey)
129 return pkey;
135 EVP_PKEY *pkey; local
158 pkey = e->load_pubkey(e, key_id, ui_method, callback_data);
159 if (!pkey)
165 return pkey;
  /external/chromium/third_party/libjingle/source/talk/base/
opensslidentity.h 57 EVP_PKEY* pkey() const { return pkey_; } function in class:talk_base::OpenSSLKeyPair
60 explicit OpenSSLKeyPair(EVP_PKEY* pkey) : pkey_(pkey) {
opensslidentity.cc 58 EVP_PKEY* pkey = EVP_PKEY_new(); local
62 if (!EVP_PKEY_assign_RSA(pkey, rsa)) {
63 EVP_PKEY_free(pkey);
71 if (!pkey || !exponent || !rsa ||
74 !EVP_PKEY_assign_RSA(pkey, rsa)) {
75 EVP_PKEY_free(pkey);
84 return pkey;
89 static X509* MakeCertificate(EVP_PKEY* pkey, const char* common_name) {
98 if (!X509_set_pubkey(x509, pkey))
131 if (!X509_sign(x509, pkey, EVP_sha1())
157 EVP_PKEY* pkey = MakeKey(); local
    [all...]
  /external/openssl/apps/
pkeyparam.c 74 EVP_PKEY *pkey=NULL; local
178 pkey = PEM_read_bio_Parameters(in, NULL);
179 if (!pkey)
187 PEM_write_bio_Parameters(out,pkey);
190 EVP_PKEY_print_params(out, pkey, 0, NULL);
195 EVP_PKEY_free(pkey);
pkey.c 1 /* apps/pkey.c */
78 EVP_PKEY *pkey=NULL; local
186 BIO_printf(bio_err, "Usage pkey [options]\n");
231 pkey = load_pubkey(bio_err, infile, informat, 1,
234 pkey = load_key(bio_err, infile, informat, 1,
236 if (!pkey)
244 PEM_write_bio_PUBKEY(out,pkey);
246 PEM_write_bio_PrivateKey(out, pkey, cipher,
252 i2d_PUBKEY_bio(out, pkey);
254 i2d_PrivateKey_bio(out, pkey);
    [all...]
spkac.c 95 EVP_PKEY *pkey = NULL; local
196 pkey = load_key(bio_err,
199 if(!pkey) {
205 NETSCAPE_SPKI_set_pubkey(spki, pkey);
206 NETSCAPE_SPKI_sign(spki, pkey, EVP_md5());
285 pkey = NETSCAPE_SPKI_get_pubkey(spki);
287 i = NETSCAPE_SPKI_verify(spki, pkey);
295 if(pubkey) PEM_write_bio_PUBKEY(out, pkey);
304 EVP_PKEY_free(pkey);
dsa.c 271 EVP_PKEY *pkey; local
274 pkey = load_pubkey(bio_err, infile, informat, 1,
277 pkey = load_key(bio_err, infile, informat, 1,
280 if (pkey)
282 dsa = EVP_PKEY_get1_DSA(pkey);
283 EVP_PKEY_free(pkey);
genpkey.c 85 EVP_PKEY *pkey=NULL; local
249 if (EVP_PKEY_paramgen(ctx, &pkey) <= 0)
258 if (EVP_PKEY_keygen(ctx, &pkey) <= 0)
267 rv = PEM_write_bio_Parameters(out, pkey);
269 rv = PEM_write_bio_PrivateKey(out, pkey, cipher, NULL, 0,
272 rv = i2d_PrivateKey_bio(out, pkey);
288 rv = EVP_PKEY_print_params(out, pkey, 0, NULL);
290 rv = EVP_PKEY_print_private(out, pkey, 0, NULL);
302 if (pkey)
303 EVP_PKEY_free(pkey);
319 EVP_PKEY *pkey = NULL; local
    [all...]
pkcs8.c 85 EVP_PKEY *pkey=NULL; local
278 pkey = load_key(bio_err, infile, informat, 1,
280 if (!pkey)
282 if (!(p8inf = EVP_PKEY2PKCS8_broken(pkey, p8_broken)))
382 if (!(pkey = EVP_PKCS82PKEY(p8inf)))
417 PEM_write_bio_PrivateKey(out, pkey, NULL, NULL, 0, NULL, passout);
419 i2d_PrivateKey_bio(out, pkey);
430 EVP_PKEY_free(pkey);
rsa.c 269 EVP_PKEY *pkey; local
286 pkey = load_pubkey(bio_err, infile, tmpformat, 1,
290 pkey = load_key(bio_err, infile,
295 if (pkey != NULL)
296 rsa = EVP_PKEY_get1_RSA(pkey);
297 EVP_PKEY_free(pkey);
  /external/openssl/crypto/pkcs7/
sign.c 70 EVP_PKEY *pkey; local
111 if ((pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,NULL)) == NULL) goto err;
117 si=PKCS7_add_signature(p7,x509,pkey,EVP_sha1());
dec.c 77 EVP_PKEY *pkey; local
127 if ((pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,NULL)) == NULL)
152 p7bio=PKCS7_dataDecode(p7,pkey,detached,x509);
pk7_lib.c 366 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
385 /* lets keep the pkey around for a while */
386 CRYPTO_add(&pkey->references,1,CRYPTO_LOCK_EVP_PKEY);
387 p7i->pkey=pkey;
394 if (pkey->ameth && pkey->ameth->pkey_ctrl)
396 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_SIGN,
413 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509, EVP_PKEY *pkey,
532 EVP_PKEY *pkey = NULL; local
    [all...]
  /external/openssl/crypto/evp/
evp_pkey.c 70 EVP_PKEY *pkey = NULL; local
77 if (!(pkey = EVP_PKEY_new())) {
82 if (!EVP_PKEY_set_type(pkey, OBJ_obj2nid(algoid)))
90 if (pkey->ameth->priv_decode)
92 if (!pkey->ameth->priv_decode(pkey, p8))
105 return pkey;
108 EVP_PKEY_free (pkey);
112 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey)
114 return EVP_PKEY2PKCS8_broken(pkey, PKCS8_OK)
    [all...]
  /external/srec/srec/Semproc/src/
SymbolTable.c 125 LCHAR *pkey; local
134 HashMapGetKeyAtIndex(self->hashmap, i, &pkey);
135 HashMapGet(self->hashmap, pkey, (void **)&pvalue);
144 HashMapPut(dst, pkey, copyValue);
  /external/chromium/net/test/
openssl_helper.cc 135 EVP_PKEY *pkey = PEM_read_bio_PrivateKey(key, NULL, NULL, NULL); local
136 if (!pkey) {
161 if (SSL_CTX_use_PrivateKey(ctx, pkey) <= 0) {
  /external/openssl/ssl/
s2_clnt.c 795 EVP_PKEY *pkey=NULL; local
806 i=s->ctx->client_cert_cb(s,&(x509),&(pkey));
816 if ((i == 1) && (pkey != NULL) && (x509 != NULL))
820 !SSL_use_PrivateKey(s,pkey))
825 EVP_PKEY_free(pkey);
830 if (pkey != NULL) EVP_PKEY_free(pkey);
1028 EVP_PKEY *pkey=NULL; local
1070 pkey=X509_get_pubkey(x509);
1072 if (pkey == NULL
1096 EVP_PKEY *pkey=NULL; local
    [all...]
s2_srvr.c 1059 EVP_PKEY *pkey=NULL; local
1079 pkey=X509_get_pubkey(x509);
1080 if (pkey == NULL) goto end;
1081 i=EVP_VerifyFinal(&ctx,cp,s->s2->tmp.rlen,pkey);
1082 EVP_PKEY_free(pkey);
1128 rsa=c->pkeys[SSL_PKEY_RSA_ENC].privatekey->pkey.rsa;
ssl_rsa.c 68 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);
154 EVP_PKEY *pkey; local
167 if ((pkey=EVP_PKEY_new()) == NULL)
174 EVP_PKEY_assign_RSA(pkey,rsa);
176 ret=ssl_set_pkey(ssl->cert,pkey);
177 EVP_PKEY_free(pkey);
182 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey)
186 i=ssl_cert_type(NULL,pkey);
197 EVP_PKEY_copy_parameters(pktmp,pkey);
204 if ((pkey->type == EVP_PKEY_RSA) &
318 EVP_PKEY *pkey=NULL; local
365 EVP_PKEY *pkey; local
396 EVP_PKEY *pkey; local
524 EVP_PKEY *pkey; local
637 EVP_PKEY *pkey=NULL; local
685 EVP_PKEY *pkey; local
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/crypto/
crypto_gnutls.c 41 u8 pkey[8], next, tmp; local
48 pkey[i] = (tmp >> i) | next | 1;
51 pkey[i] = next | 1;
54 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8));

Completed in 325 milliseconds

1 2 3