Searched defs:pkey (Results 26 - 50 of 119) sorted by relevance

12345

/external/openssl/crypto/pkcs12/
H A Dp12_kiss.c66 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
69 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
72 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
76 * or it should point to a valid STACK structure. pkey and cert can be
80 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, argument
93 if(pkey)
94 *pkey = NULL;
127 if (!parse_pk12 (p12, pass, -1, pkey, ocerts))
135 if (pkey && *pkey
179 parse_pk12(PKCS12 *p12, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) argument
224 parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) argument
[all...]
/external/openssl/crypto/pkcs7/
H A Ddec.c77 EVP_PKEY *pkey; local
127 if ((pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,NULL)) == NULL)
152 p7bio=PKCS7_dataDecode(p7,pkey,detached,x509);
H A Dpk7_smime.c68 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, argument
86 if (pkey && !PKCS7_sign_add_signer(p7, signcert, pkey, NULL, flags))
162 EVP_PKEY *pkey, const EVP_MD *md,
167 if(!X509_check_private_key(signcert, pkey))
174 if (!(si = PKCS7_add_signature(p7,signcert,pkey, md)))
534 int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags) argument
550 if(cert && !X509_check_private_key(cert, pkey)) {
556 if(!(tmpmem = PKCS7_dataDecode(p7, pkey, NULL, cert))) {
161 PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, EVP_PKEY *pkey, const EVP_MD *md, int flags) argument
H A Dpk7_lib.c366 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey, argument
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, argument
532 EVP_PKEY *pkey = NULL; local
[all...]
/external/srec/srec/Semproc/src/
H A DSymbolTable.c125 LCHAR *pkey; local
134 HashMapGetKeyAtIndex(self->hashmap, i, &pkey);
135 HashMapGet(self->hashmap, pkey, (void **)&pvalue);
144 HashMapPut(dst, pkey, copyValue);
/external/chromium/third_party/libjingle/source/talk/base/
H A Dopensslidentity.cc58 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) { argument
98 if (!X509_set_pubkey(x509, pkey))
131 if (!X509_sign(x509, pkey, EVP_sha
157 EVP_PKEY* pkey = MakeKey(); local
[all...]
/external/openssl/apps/
H A Ddsa.c271 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);
H A Dgenpkey.c85 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...]
H A Dpkcs8.c85 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);
H A Drsa.c269 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);
H A Dcrl.c117 EVP_PKEY *pkey; local
265 pkey = X509_get_pubkey(xobj.data.x509);
267 if(!pkey) {
272 i = X509_CRL_verify(x, pkey);
273 EVP_PKEY_free(pkey);
H A Dpkeyutl.c417 EVP_PKEY *pkey = NULL; local
437 pkey = load_key(bio_err, keyfile, keyform, 0,
442 pkey = load_pubkey(bio_err, keyfile, keyform, 0,
451 pkey = X509_get_pubkey(x);
458 *pkeysize = EVP_PKEY_size(pkey);
460 if (!pkey)
463 ctx = EVP_PKEY_CTX_new(pkey, e);
465 EVP_PKEY_free(pkey);
H A Drsautl.c99 EVP_PKEY *pkey = NULL; local
201 pkey = load_key(bio_err, keyfile, keyform, 0,
206 pkey = load_pubkey(bio_err, keyfile, keyform, 0,
214 pkey = X509_get_pubkey(x);
220 if(!pkey) {
224 rsa = EVP_PKEY_get1_RSA(pkey);
225 EVP_PKEY_free(pkey);
/external/openssl/crypto/asn1/
H A Dn_pkey.c127 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
289 NETSCAPE_PKEY *pkey=NULL; local
[all...]
H A Dameth_lib.c283 const EVP_PKEY_ASN1_METHOD* EVP_PKEY_get0_asn1(EVP_PKEY *pkey) argument
285 return pkey->ameth;
407 int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent,
423 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent,
432 int (*param_decode)(EVP_PKEY *pkey,
434 int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder),
438 int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent,
450 void (*pkey_free)(EVP_PKEY *pkey))
456 int (*pkey_ctrl)(EVP_PKEY *pkey, int op,
403 EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth, int (*pub_decode)(EVP_PKEY *pk, X509_PUBKEY *pub), int (*pub_encode)(X509_PUBKEY *pub, const EVP_PKEY *pk), int (*pub_cmp)(const EVP_PKEY *a, const EVP_PKEY *b), int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx), int (*pkey_size)(const EVP_PKEY *pk), int (*pkey_bits)(const EVP_PKEY *pk)) argument
420 EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth, int (*priv_decode)(EVP_PKEY *pk, PKCS8_PRIV_KEY_INFO *p8inf), int (*priv_encode)(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk), int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) argument
431 EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth, int (*param_decode)(EVP_PKEY *pkey, const unsigned char **pder, int derlen), int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder), int (*param_missing)(const EVP_PKEY *pk), int (*param_copy)(EVP_PKEY *to, const EVP_PKEY *from), int (*param_cmp)(const EVP_PKEY *a, const EVP_PKEY *b), int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) argument
449 EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth, void (*pkey_free)(EVP_PKEY *pkey)) argument
455 EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2)) argument
H A Dt_x509.c113 EVP_PKEY *pkey=NULL; local
215 pkey=X509_get_pubkey(x);
216 if (pkey == NULL)
223 EVP_PKEY_print_public(bp, pkey, 16, NULL);
224 EVP_PKEY_free(pkey);
/external/openssl/crypto/cmac/
H A Dcm_pmeth.c86 static int pkey_cmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
97 EVP_PKEY_assign(pkey, EVP_PKEY_CMAC, cmkey);
141 if (ctx->pkey && !CMAC_CTX_copy(ctx->data,
142 (CMAC_CTX *)ctx->pkey->pkey.ptr))
/external/openssl/crypto/dh/
H A Ddh_pmeth.c67 /* DH pkey context structure */
161 static int pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
180 EVP_PKEY_assign_DH(pkey, dh);
186 static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
189 if (ctx->pkey == NULL)
197 EVP_PKEY_assign_DH(pkey, dh);
198 /* Note: if error return, pkey is freed by parent routine */
199 if (!EVP_PKEY_copy_parameters(pkey, ctx->pkey))
201 return DH_generate_key(pkey
[all...]
H A Ddh_ameth.c66 static void int_dh_free(EVP_PKEY *pkey) argument
68 DH_free(pkey->pkey.dh);
71 static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
117 EVP_PKEY_assign_DH(pkey, dh);
129 static int dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) argument
139 dh=pkey->pkey.dh;
184 static int dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) argument
223 EVP_PKEY_assign_DH(pkey, d
236 dh_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) argument
298 dh_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument
311 dh_param_encode(const EVP_PKEY *pkey, unsigned char **pder) argument
391 int_dh_size(const EVP_PKEY *pkey) argument
396 dh_bits(const EVP_PKEY *pkey) argument
446 dh_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
452 dh_public_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
458 dh_private_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
[all...]
/external/openssl/crypto/dsa/
H A Ddsa_pmeth.c67 /* DSA pkey context structure */
126 DSA *dsa = ctx->pkey->pkey.dsa;
147 DSA *dsa = ctx->pkey->pkey.dsa;
241 static int pkey_dsa_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
260 EVP_PKEY_assign_DSA(pkey, dsa);
266 static int pkey_dsa_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
269 if (ctx->pkey == NULL)
277 EVP_PKEY_assign_DSA(pkey, ds
[all...]
/external/openssl/crypto/ec/
H A Dec_pmeth.c67 /* EC pkey context structure */
125 EC_KEY *ec = ctx->pkey->pkey.ec;
158 EC_KEY *ec = ctx->pkey->pkey.ec;
175 if (!ctx->pkey || !ctx->peerkey)
184 group = EC_KEY_get0_group(ctx->pkey->pkey.ec);
189 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
197 ret = ECDH_compute_key(key, outlen, pubkey, ctx->pkey
268 pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
289 pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
[all...]
/external/openssl/crypto/hmac/
H A Dhm_pmeth.c66 /* HMAC pkey context structure */
128 static int pkey_hmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
137 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, hkey);
197 key = (ASN1_OCTET_STRING *)ctx->pkey->pkey.ptr;
/external/chromium/net/test/
H A Dopenssl_helper.cc135 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/crypto/evp/
H A Dp_lib.c85 int EVP_PKEY_bits(EVP_PKEY *pkey) argument
87 if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
88 return pkey->ameth->pkey_bits(pkey);
92 int EVP_PKEY_size(EVP_PKEY *pkey) argument
94 if (pkey && pkey->ameth && pkey
99 EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode) argument
143 EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) argument
207 pkey_set_type(EVP_PKEY *pkey, int type, const char *str, int len) argument
253 EVP_PKEY_set_type(EVP_PKEY *pkey, int type) argument
258 EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) argument
263 EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) argument
271 EVP_PKEY_get0(EVP_PKEY *pkey) argument
277 EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) argument
285 EVP_PKEY_get1_RSA(EVP_PKEY *pkey) argument
297 EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) argument
305 EVP_PKEY_get1_DSA(EVP_PKEY *pkey) argument
318 EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) argument
326 EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) argument
341 EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) argument
349 EVP_PKEY_get1_DH(EVP_PKEY *pkey) argument
377 EVP_PKEY_id(const EVP_PKEY *pkey) argument
382 EVP_PKEY_base_id(const EVP_PKEY *pkey) argument
427 unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) argument
436 EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
445 EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
454 EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
462 EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid) argument
[all...]
/external/openssl/crypto/rsa/
H A Drsa_pmeth.c75 /* RSA pkey context structure */
141 ctx->tbuf = OPENSSL_malloc(EVP_PKEY_size(pk->pkey));
169 RSA *rsa = ctx->pkey->pkey.rsa;
190 RSA *rsa = ctx->pkey->pkey.rsa;
273 ret = RSA_private_encrypt(tbslen, tbs, sig, ctx->pkey->pkey.rsa,
296 rctx->tbuf, ctx->pkey->pkey
656 pkey_rsa_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
[all...]

Completed in 173 milliseconds

12345