Home
last modified time | relevance | path

Searched refs:pkey (Results 126 - 150 of 1031) sorted by relevance

12345678910>>...42

/third_party/openssl/crypto/evp/
H A Dp_verify.c18 unsigned int siglen, EVP_PKEY *pkey, OSSL_LIB_CTX *libctx, in EVP_VerifyFinal_ex()
46 pkctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in EVP_VerifyFinal_ex()
60 unsigned int siglen, EVP_PKEY *pkey) in EVP_VerifyFinal()
62 return EVP_VerifyFinal_ex(ctx, sigbuf, siglen, pkey, NULL, NULL); in EVP_VerifyFinal()
17 EVP_VerifyFinal_ex(EVP_MD_CTX *ctx, const unsigned char *sigbuf, unsigned int siglen, EVP_PKEY *pkey, OSSL_LIB_CTX *libctx, const char *propq) EVP_VerifyFinal_ex() argument
59 EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, unsigned int siglen, EVP_PKEY *pkey) EVP_VerifyFinal() argument
H A Dexchange.c224 * Some algorithms (e.g. legacy KDFs) don't have a pkey - so we create in EVP_PKEY_derive_init_ex()
227 if (ctx->pkey == NULL) { in EVP_PKEY_derive_init_ex()
228 EVP_PKEY *pkey = EVP_PKEY_new(); in EVP_PKEY_derive_init_ex() local
230 if (pkey == NULL in EVP_PKEY_derive_init_ex()
231 || !EVP_PKEY_set_type_by_keymgmt(pkey, ctx->keymgmt) in EVP_PKEY_derive_init_ex()
232 || (pkey->keydata = evp_keymgmt_newdata(ctx->keymgmt)) == NULL) { in EVP_PKEY_derive_init_ex()
234 EVP_PKEY_free(pkey); in EVP_PKEY_derive_init_ex()
238 ctx->pkey = pkey; in EVP_PKEY_derive_init_ex()
244 if (!ossl_assert(ctx->pkey in EVP_PKEY_derive_init_ex()
[all...]
H A Dm_sigver.c42 ENGINE *e, EVP_PKEY *pkey, int ver, in do_sigver_init()
67 ctx->pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, props); in do_sigver_init()
69 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); in do_sigver_init()
80 /* do not reinitialize if pkey is set or operation is different */ in do_sigver_init()
82 && (pkey != NULL in do_sigver_init()
92 if (locpctx->pkey == NULL) { in do_sigver_init()
109 if (!ossl_assert(locpctx->pkey->keymgmt == NULL in do_sigver_init()
110 || locpctx->pkey->keymgmt == locpctx->keymgmt)) { in do_sigver_init()
132 * signature, and try to export |ctx->pkey| to that keymgmt (when in do_sigver_init()
173 * |locpctx->pkey|, bu in do_sigver_init()
39 do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, const char *mdname, OSSL_LIB_CTX *libctx, const char *props, ENGINE *e, EVP_PKEY *pkey, int ver, const OSSL_PARAM params[]) do_sigver_init() argument
374 EVP_DigestSignInit_ex(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const char *mdname, OSSL_LIB_CTX *libctx, const char *props, EVP_PKEY *pkey, const OSSL_PARAM params[]) EVP_DigestSignInit_ex() argument
383 EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) EVP_DigestSignInit() argument
390 EVP_DigestVerifyInit_ex(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const char *mdname, OSSL_LIB_CTX *libctx, const char *props, EVP_PKEY *pkey, const OSSL_PARAM params[]) EVP_DigestVerifyInit_ex() argument
399 EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) EVP_DigestVerifyInit() argument
[all...]
/third_party/openssl/test/
H A Devp_extra_test.c590 EVP_PKEY *pkey = NULL; in load_example_key() local
592 OSSL_DECODER_CTX_new_for_pkey(&pkey, "DER", NULL, keytype, 0, in load_example_key()
595 /* |pkey| will be NULL on error */ in load_example_key()
598 return pkey; in load_example_key()
649 EVP_PKEY *pkey = NULL; in load_example_hmac_key() local
656 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, "HMAC", in load_example_hmac_key()
658 if (!TEST_ptr(pkey)) in load_example_hmac_key()
661 return pkey; in load_example_hmac_key()
697 EVP_PKEY *tmp_pkey = NULL, *pkey = NULL; in make_key_fromdata() local
709 pkey in make_key_fromdata()
717 test_selection(EVP_PKEY *pkey, int selection) test_selection() argument
1063 EVP_PKEY *pkey = NULL, *dup_pk = NULL; test_EC_priv_only_legacy() local
1125 EVP_PKEY *pkey = NULL; test_EVP_PKEY_sign() local
1261 EVP_PKEY *pkey = NULL; test_EVP_DigestSignInit() local
1424 EVP_PKEY *pkey = NULL; test_EVP_DigestVerifyInit() local
1463 EVP_PKEY *pkey = NULL; test_siphash_digestsign() local
1591 EVP_PKEY *pkey = NULL; test_d2i_AutoPrivateKey() local
1656 EVP_PKEY *pkey; test_invalide_ec_char2_pub_range_decode() local
1673 EVP_PKEY *pkey = NULL; test_EVP_PKCS82PKEY() local
1698 EVP_PKEY *pkey = NULL; test_EVP_PKCS82PKEY_wrong_tag() local
1733 EVP_PKEY *pkey = NULL; test_privatekey_to_pkcs8() local
1863 EVP_PKEY *pkey = NULL; test_EVP_SM2_verify() local
1915 EVP_PKEY *pkey = NULL; test_EVP_SM2() local
2159 EVP_PKEY *pkey; test_set_get_raw_keys_int() local
2241 pkey_custom_check(EVP_PKEY *pkey) pkey_custom_check() argument
2246 pkey_custom_pub_check(EVP_PKEY *pkey) pkey_custom_pub_check() argument
2251 pkey_custom_param_check(EVP_PKEY *pkey) pkey_custom_param_check() argument
2262 EVP_PKEY *pkey = NULL; test_EVP_PKEY_check() local
2322 get_cmac_val(EVP_PKEY *pkey, unsigned char *mac) get_cmac_val() argument
2350 EVP_PKEY *pkey = NULL; test_CMAC_keygen() local
2561 test_EVP_PKEY_CTX_get_set_params(EVP_PKEY *pkey) test_EVP_PKEY_CTX_get_set_params() argument
2669 EVP_PKEY *pkey = NULL; test_DSA_get_set_params() local
2736 EVP_PKEY *pkey = NULL; test_RSA_get_set_params() local
2991 EVP_PKEY *pkey = NULL; test_keygen_with_empty_template() local
3414 EVP_PKEY *pkey = NULL; test_ecpub() local
3477 EVP_PKEY *pkey = NULL; test_EVP_rsa_pss_with_keygen_bits() local
3497 EVP_PKEY *pkey = NULL; test_EVP_rsa_pss_set_saltlen() local
4136 EVP_PKEY *pkey = NULL; test_custom_pmeth() local
4498 EVP_PKEY *pkey = NULL; test_signatures_with_engine() local
4645 EVP_PKEY *pkey; test_ecx_short_keys() local
4679 EVP_PKEY *pkey = NULL; test_ecx_not_private_key() local
[all...]
H A Dendecode_test.c74 EVP_PKEY *pkey = NULL; in make_template() local
91 * effect. |pkey| will simply remain NULL if something goes wrong. in make_template()
97 && EVP_PKEY_generate(ctx, &pkey) > 0); in make_template()
100 return pkey; in make_template()
108 EVP_PKEY *pkey = NULL; in make_key() local
116 * effect. |pkey| will simply remain NULL if something goes wrong. in make_key()
122 && EVP_PKEY_keygen(ctx, &pkey) > 0); in make_key()
124 return pkey; in make_key()
150 const char *type, EVP_PKEY *pkey, in test_encode_decode()
166 * Encode |pkey|, decod in test_encode_decode()
149 test_encode_decode(const char *file, const int line, const char *type, EVP_PKEY *pkey, int selection, const char *output_type, const char *output_structure, const char *pass, const char *pcipher, encoder *encode_cb, decoder *decode_cb, tester *test_cb, checker *check_cb, dumper *dump_cb, int flags) test_encode_decode() argument
233 EVP_PKEY *pkey = object; encode_EVP_PKEY_prov() local
274 EVP_PKEY *pkey = NULL, *testpkey = NULL; decode_EVP_PKEY_prov() local
349 EVP_PKEY *pkey = object; encode_EVP_PKEY_legacy_PEM() local
390 EVP_PKEY *pkey = object; encode_EVP_PKEY_MSBLOB() local
435 EVP_PKEY *pkey = object; encode_EVP_PKEY_PVK() local
519 EVP_PKEY *pkey = EVP_PKCS82PKEY_ex(p8inf, testctx, testpropq); check_unprotected_PKCS8_DER() local
577 EVP_PKEY *pkey = NULL; check_params_DER() local
660 EVP_PKEY *pkey = b2i_PrivateKey(&datap, data_len); check_MSBLOB() local
800 EVP_PKEY *pkey = d2i_PUBKEY_ex(NULL, &datap, data_len, testctx, testpropq); check_public_DER() local
845 EVP_PKEY *pkey = b2i_PublicKey(&datap, data_len); check_public_MSBLOB() local
[all...]
H A Dossl_store_test.c74 EVP_PKEY *pkey = NULL; in get_params() local
85 && pkey == NULL) { in get_params()
87 pkey = OSSL_STORE_INFO_get1_PARAMS(info); in get_params()
93 if (pkey != NULL) in get_params()
94 ret = EVP_PKEY_is_a(pkey, type); in get_params()
95 EVP_PKEY_free(pkey); in get_params()
H A Dx509_check_cert_pkey_test.c33 EVP_PKEY *pkey = NULL; in test_x509_check_cert_pkey() local
62 if (!TEST_ptr(pkey = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL))) in test_x509_check_cert_pkey()
79 result = X509_check_private_key(x509, pkey); in test_x509_check_cert_pkey()
88 result = X509_REQ_check_private_key(x509_req, pkey); in test_x509_check_cert_pkey()
105 EVP_PKEY_free(pkey); in test_x509_check_cert_pkey()
/third_party/node/deps/openssl/openssl/crypto/evp/
H A Dexchange.c224 * Some algorithms (e.g. legacy KDFs) don't have a pkey - so we create in EVP_PKEY_derive_init_ex()
227 if (ctx->pkey == NULL) { in EVP_PKEY_derive_init_ex()
228 EVP_PKEY *pkey = EVP_PKEY_new(); in EVP_PKEY_derive_init_ex() local
230 if (pkey == NULL in EVP_PKEY_derive_init_ex()
231 || !EVP_PKEY_set_type_by_keymgmt(pkey, ctx->keymgmt) in EVP_PKEY_derive_init_ex()
232 || (pkey->keydata = evp_keymgmt_newdata(ctx->keymgmt)) == NULL) { in EVP_PKEY_derive_init_ex()
234 EVP_PKEY_free(pkey); in EVP_PKEY_derive_init_ex()
238 ctx->pkey = pkey; in EVP_PKEY_derive_init_ex()
244 if (!ossl_assert(ctx->pkey in EVP_PKEY_derive_init_ex()
[all...]
H A Dm_sigver.c42 ENGINE *e, EVP_PKEY *pkey, int ver, in do_sigver_init()
67 ctx->pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, props); in do_sigver_init()
69 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); in do_sigver_init()
80 /* do not reinitialize if pkey is set or operation is different */ in do_sigver_init()
82 && (pkey != NULL in do_sigver_init()
92 if (locpctx->pkey == NULL) { in do_sigver_init()
109 if (!ossl_assert(locpctx->pkey->keymgmt == NULL in do_sigver_init()
110 || locpctx->pkey->keymgmt == locpctx->keymgmt)) { in do_sigver_init()
132 * signature, and try to export |ctx->pkey| to that keymgmt (when in do_sigver_init()
173 * |locpctx->pkey|, bu in do_sigver_init()
39 do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, const char *mdname, OSSL_LIB_CTX *libctx, const char *props, ENGINE *e, EVP_PKEY *pkey, int ver, const OSSL_PARAM params[]) do_sigver_init() argument
374 EVP_DigestSignInit_ex(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const char *mdname, OSSL_LIB_CTX *libctx, const char *props, EVP_PKEY *pkey, const OSSL_PARAM params[]) EVP_DigestSignInit_ex() argument
383 EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) EVP_DigestSignInit() argument
390 EVP_DigestVerifyInit_ex(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const char *mdname, OSSL_LIB_CTX *libctx, const char *props, EVP_PKEY *pkey, const OSSL_PARAM params[]) EVP_DigestVerifyInit_ex() argument
399 EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) EVP_DigestVerifyInit() argument
[all...]
H A Dpmeth_lib.c181 EVP_PKEY *pkey, ENGINE *e, in int_ctx_new()
193 if (pkey != NULL && !evp_pkey_is_provided(pkey)) { in int_ctx_new()
194 id = pkey->type; in int_ctx_new()
196 if (pkey != NULL) { in int_ctx_new()
198 keytype = EVP_KEYMGMT_get0_name(pkey->keymgmt); in int_ctx_new()
232 if (e == NULL && (pkey == NULL || pkey->foreign == 0)) in int_ctx_new()
236 if (e == NULL && pkey != NULL) in int_ctx_new()
237 e = pkey in int_ctx_new()
180 int_ctx_new(OSSL_LIB_CTX *libctx, EVP_PKEY *pkey, ENGINE *e, const char *keytype, const char *propquery, int id) int_ctx_new() argument
372 EVP_PKEY_CTX_new_from_pkey(OSSL_LIB_CTX *libctx, EVP_PKEY *pkey, const char *propquery) EVP_PKEY_CTX_new_from_pkey() argument
463 EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e) EVP_PKEY_CTX_new() argument
1690 EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth, int (*paramgen_init) (EVP_PKEY_CTX *ctx), int (*paramgen) (EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)) EVP_PKEY_meth_set_paramgen() argument
1699 EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth, int (*keygen_init) (EVP_PKEY_CTX *ctx), int (*keygen) (EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)) EVP_PKEY_meth_set_keygen() argument
1831 EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth, int (*check) (EVP_PKEY *pkey)) EVP_PKEY_meth_set_check() argument
1837 EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth, int (*check) (EVP_PKEY *pkey)) EVP_PKEY_meth_set_public_check() argument
1843 EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth, int (*check) (EVP_PKEY *pkey)) EVP_PKEY_meth_set_param_check() argument
1875 EVP_PKEY_meth_get_paramgen(const EVP_PKEY_METHOD *pmeth, int (**pparamgen_init) (EVP_PKEY_CTX *ctx), int (**pparamgen) (EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)) EVP_PKEY_meth_get_paramgen() argument
1886 EVP_PKEY_meth_get_keygen(const EVP_PKEY_METHOD *pmeth, int (**pkeygen_init) (EVP_PKEY_CTX *ctx), int (**pkeygen) (EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)) EVP_PKEY_meth_get_keygen() argument
2040 EVP_PKEY_meth_get_check(const EVP_PKEY_METHOD *pmeth, int (**pcheck) (EVP_PKEY *pkey)) EVP_PKEY_meth_get_check() argument
2047 EVP_PKEY_meth_get_public_check(const EVP_PKEY_METHOD *pmeth, int (**pcheck) (EVP_PKEY *pkey)) EVP_PKEY_meth_get_public_check() argument
2054 EVP_PKEY_meth_get_param_check(const EVP_PKEY_METHOD *pmeth, int (**pcheck) (EVP_PKEY *pkey)) EVP_PKEY_meth_get_param_check() argument
[all...]
/third_party/libwebsockets/lib/tls/openssl/
H A Dopenssl-server.c166 EVP_PKEY *pkey; local
461 pkey = X509_get_pubkey(x);
462 if (!pkey) {
463 lwsl_err("%s: pkey is NULL\n", __func__);
468 KeyType = EVP_PKEY_type(EVP_PKEY_id(pkey));
475 EC_key = EVP_PKEY_get1_EC_KEY(pkey);
809 EVP_PKEY *pkey; member
839 vhost->tls.ss->pkey = EVP_PKEY_new();
840 if (!vhost->tls.ss->pkey)
846 if (!EVP_PKEY_assign_RSA(vhost->tls.ss->pkey, vhos
983 EVP_PKEY *pkey; global() local
[all...]
/third_party/node/deps/openssl/openssl/engines/
H A De_loader_attic.c320 EVP_PKEY *pkey = NULL; in try_decode_PKCS12() local
343 if (PKCS12_parse(p12, pass, &pkey, &cert, &chain)) { in try_decode_PKCS12()
350 if (pkey != NULL) { in try_decode_PKCS12()
351 if ((osi_pkey = OSSL_STORE_INFO_new_PKEY(pkey)) != NULL in try_decode_PKCS12()
352 /* clearing pkey here avoids case distinctions */ in try_decode_PKCS12()
353 && (pkey = NULL) == NULL in try_decode_PKCS12()
379 EVP_PKEY_free(pkey); in try_decode_PKCS12()
519 EVP_PKEY *pkey = NULL; in try_decode_PrivateKey() local
529 pkey = EVP_PKCS82PKEY_ex(p8inf, libctx, propq); in try_decode_PrivateKey()
541 pkey in try_decode_PrivateKey()
648 EVP_PKEY *pkey = NULL; try_decode_PUBKEY() local
684 EVP_PKEY *pkey = NULL; try_decode_params() local
[all...]
/third_party/openssl/engines/
H A De_loader_attic.c320 EVP_PKEY *pkey = NULL; in try_decode_PKCS12() local
343 if (PKCS12_parse(p12, pass, &pkey, &cert, &chain)) { in try_decode_PKCS12()
350 if (pkey != NULL) { in try_decode_PKCS12()
351 if ((osi_pkey = OSSL_STORE_INFO_new_PKEY(pkey)) != NULL in try_decode_PKCS12()
352 /* clearing pkey here avoids case distinctions */ in try_decode_PKCS12()
353 && (pkey = NULL) == NULL in try_decode_PKCS12()
379 EVP_PKEY_free(pkey); in try_decode_PKCS12()
519 EVP_PKEY *pkey = NULL; in try_decode_PrivateKey() local
529 pkey = EVP_PKCS82PKEY_ex(p8inf, libctx, propq); in try_decode_PrivateKey()
541 pkey in try_decode_PrivateKey()
648 EVP_PKEY *pkey = NULL; try_decode_PUBKEY() local
684 EVP_PKEY *pkey = NULL; try_decode_params() local
[all...]
/third_party/node/deps/openssl/openssl/crypto/dh/
H A Ddh_pmeth.c27 /* DH pkey context structure */
323 EVP_PKEY *pkey) in pkey_dh_paramgen()
340 EVP_PKEY_assign(pkey, type, dh); in pkey_dh_paramgen()
358 EVP_PKEY_assign(pkey, EVP_PKEY_DHX, dh); in pkey_dh_paramgen()
370 EVP_PKEY_assign_DH(pkey, dh); in pkey_dh_paramgen()
376 static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_dh_keygen() argument
381 if (ctx->pkey == NULL && dctx->param_nid == NID_undef) { in pkey_dh_keygen()
391 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh); in pkey_dh_keygen()
392 /* Note: if error return, pkey is freed by parent routine */ in pkey_dh_keygen()
393 if (ctx->pkey ! in pkey_dh_keygen()
322 pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) pkey_dh_paramgen() argument
[all...]
/third_party/openssl/crypto/dh/
H A Ddh_pmeth.c27 /* DH pkey context structure */
323 EVP_PKEY *pkey) in pkey_dh_paramgen()
340 EVP_PKEY_assign(pkey, type, dh); in pkey_dh_paramgen()
358 EVP_PKEY_assign(pkey, EVP_PKEY_DHX, dh); in pkey_dh_paramgen()
370 EVP_PKEY_assign_DH(pkey, dh); in pkey_dh_paramgen()
376 static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_dh_keygen() argument
381 if (ctx->pkey == NULL && dctx->param_nid == NID_undef) { in pkey_dh_keygen()
391 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh); in pkey_dh_keygen()
392 /* Note: if error return, pkey is freed by parent routine */ in pkey_dh_keygen()
393 if (ctx->pkey ! in pkey_dh_keygen()
322 pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) pkey_dh_paramgen() argument
[all...]
/third_party/node/deps/openssl/openssl/apps/
H A Dcrl.c85 EVP_PKEY *pkey; in crl_main() local
243 pkey = X509_get_pubkey(X509_OBJECT_get0_X509(xobj)); in crl_main()
245 if (pkey == NULL) { in crl_main()
249 i = X509_CRL_verify(x, pkey); in crl_main()
250 EVP_PKEY_free(pkey); in crl_main()
268 pkey = load_key(keyfile, keyformat, 0, NULL, NULL, "CRL signing key"); in crl_main()
269 if (pkey == NULL) { in crl_main()
273 delta = X509_CRL_diff(x, newcrl, pkey, digest, 0); in crl_main()
275 EVP_PKEY_free(pkey); in crl_main()
H A Dpkcs8.c74 EVP_PKEY *pkey = NULL; in pkcs8_main() local
226 pkey = load_key(infile, informat, 1, passin, e, "key"); in pkcs8_main()
227 if (pkey == NULL) in pkcs8_main()
229 if ((p8inf = EVP_PKEY2PKCS8(pkey)) == NULL) { in pkcs8_main()
348 if ((pkey = EVP_PKCS82PKEY(p8inf)) == NULL) { in pkcs8_main()
357 PEM_write_bio_PrivateKey_traditional(out, pkey, NULL, NULL, 0, in pkcs8_main()
360 PEM_write_bio_PrivateKey(out, pkey, NULL, NULL, 0, NULL, passout); in pkcs8_main()
362 i2d_PrivateKey_bio(out, pkey); in pkcs8_main()
372 EVP_PKEY_free(pkey); in pkcs8_main()
H A Dgenrsa.c83 EVP_PKEY *pkey = NULL; in genrsa_main() local
205 pkey = app_keygen(ctx, "RSA", num, verbose); in genrsa_main()
206 if (pkey == NULL) in genrsa_main()
213 EVP_PKEY_get_bn_param(pkey, "e", &e); in genrsa_main()
228 if (!PEM_write_bio_PrivateKey_traditional(out, pkey, enc, NULL, 0, in genrsa_main()
232 if (!PEM_write_bio_PrivateKey(out, pkey, enc, NULL, 0, NULL, passout)) in genrsa_main()
241 EVP_PKEY_free(pkey); in genrsa_main()
/third_party/openssl/apps/
H A Dcrl.c85 EVP_PKEY *pkey; in crl_main() local
243 pkey = X509_get_pubkey(X509_OBJECT_get0_X509(xobj)); in crl_main()
245 if (pkey == NULL) { in crl_main()
249 i = X509_CRL_verify(x, pkey); in crl_main()
250 EVP_PKEY_free(pkey); in crl_main()
268 pkey = load_key(keyfile, keyformat, 0, NULL, NULL, "CRL signing key"); in crl_main()
269 if (pkey == NULL) { in crl_main()
273 delta = X509_CRL_diff(x, newcrl, pkey, digest, 0); in crl_main()
275 EVP_PKEY_free(pkey); in crl_main()
H A Dpkcs8.c74 EVP_PKEY *pkey = NULL; in pkcs8_main() local
226 pkey = load_key(infile, informat, 1, passin, e, "key"); in pkcs8_main()
227 if (pkey == NULL) in pkcs8_main()
229 if ((p8inf = EVP_PKEY2PKCS8(pkey)) == NULL) { in pkcs8_main()
348 if ((pkey = EVP_PKCS82PKEY(p8inf)) == NULL) { in pkcs8_main()
357 PEM_write_bio_PrivateKey_traditional(out, pkey, NULL, NULL, 0, in pkcs8_main()
360 PEM_write_bio_PrivateKey(out, pkey, NULL, NULL, 0, NULL, passout); in pkcs8_main()
362 i2d_PrivateKey_bio(out, pkey); in pkcs8_main()
372 EVP_PKEY_free(pkey); in pkcs8_main()
H A Dgenrsa.c83 EVP_PKEY *pkey = NULL; in genrsa_main() local
205 pkey = app_keygen(ctx, "RSA", num, verbose); in genrsa_main()
206 if (pkey == NULL) in genrsa_main()
213 EVP_PKEY_get_bn_param(pkey, "e", &e); in genrsa_main()
228 if (!PEM_write_bio_PrivateKey_traditional(out, pkey, enc, NULL, 0, in genrsa_main()
232 if (!PEM_write_bio_PrivateKey(out, pkey, enc, NULL, 0, NULL, passout)) in genrsa_main()
241 EVP_PKEY_free(pkey); in genrsa_main()
/third_party/mbedtls/programs/fuzz/
H A Dfuzz_dtlsserver.c24 static mbedtls_pk_context pkey; variable
53 mbedtls_pk_init(&pkey); in LLVMFuzzerTestOneInput()
82 if (mbedtls_pk_parse_key(&pkey, (const unsigned char *) mbedtls_test_srv_key, in LLVMFuzzerTestOneInput()
106 if (mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey) != 0) { in LLVMFuzzerTestOneInput()
166 mbedtls_pk_free(&pkey); in LLVMFuzzerTestOneInput()
/third_party/node/deps/openssl/openssl/crypto/ct/
H A Dct_b64.c142 EVP_PKEY *pkey = NULL; in CTLOG_new_from_base64_ex() local
156 pkey = d2i_PUBKEY_ex(NULL, &p, pkey_der_len, libctx, propq); in CTLOG_new_from_base64_ex()
158 if (pkey == NULL) { in CTLOG_new_from_base64_ex()
163 *ct_log = CTLOG_new_ex(pkey, name, libctx, propq); in CTLOG_new_from_base64_ex()
165 EVP_PKEY_free(pkey); in CTLOG_new_from_base64_ex()
/third_party/openssl/demos/pkcs12/
H A Dpkread.c51 EVP_PKEY *pkey = NULL; in main() local
74 if (!PKCS12_parse(p12, argv[2], &pkey, &cert, &ca)) { in main()
87 if (pkey != NULL) { in main()
89 PEM_write_PrivateKey(fp, pkey, NULL, NULL, 0, NULL, NULL); in main()
107 EVP_PKEY_free(pkey); in main()
/third_party/openssl/crypto/ct/
H A Dct_b64.c142 EVP_PKEY *pkey = NULL; in CTLOG_new_from_base64_ex() local
156 pkey = d2i_PUBKEY_ex(NULL, &p, pkey_der_len, libctx, propq); in CTLOG_new_from_base64_ex()
158 if (pkey == NULL) { in CTLOG_new_from_base64_ex()
163 *ct_log = CTLOG_new_ex(pkey, name, libctx, propq); in CTLOG_new_from_base64_ex()
165 EVP_PKEY_free(pkey); in CTLOG_new_from_base64_ex()

Completed in 20 milliseconds

12345678910>>...42