Home
last modified time | relevance | path

Searched refs:pkey (Results 376 - 400 of 983) sorted by relevance

1...<<11121314151617181920>>...40

/third_party/openssl/apps/
H A Dx509.c262 EVP_PKEY *pkey; in x509_main() local
708 if ((pkey = X509_REQ_get0_pubkey(req)) == NULL) { in x509_main()
712 i = do_X509_REQ_verify(req, pkey, vfyopts); in x509_main()
846 pkey = X509_get0_pubkey(x); in x509_main()
847 if ((print_pubkey != 0 || modulus != 0) && pkey == NULL) { in x509_main()
967 if (EVP_PKEY_is_a(pkey, "RSA") || EVP_PKEY_is_a(pkey, "RSA-PSS")) { in x509_main()
971 EVP_PKEY_get_bn_param(pkey, "n", &n); in x509_main()
974 } else if (EVP_PKEY_is_a(pkey, "DSA")) { in x509_main()
978 EVP_PKEY_get_bn_param(pkey, "pu in x509_main()
[all...]
/third_party/node/deps/openssl/openssl/apps/include/
H A Dapps.h255 int do_X509_sign(X509 *x, EVP_PKEY *pkey, const char *md,
257 int do_X509_verify(X509 *x, EVP_PKEY *pkey, STACK_OF(OPENSSL_STRING) *vfyopts);
258 int do_X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const char *md,
260 int do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey,
262 int do_X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const char *md,
/third_party/openssl/apps/include/
H A Dapps.h255 int do_X509_sign(X509 *x, EVP_PKEY *pkey, const char *md,
257 int do_X509_verify(X509 *x, EVP_PKEY *pkey, STACK_OF(OPENSSL_STRING) *vfyopts);
258 int do_X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const char *md,
260 int do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey,
262 int do_X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const char *md,
/third_party/openssl/test/
H A Ddsa_no_digest_size_test.c141 EVP_PKEY *pkey = NULL; in sign_and_verify() local
154 if (!TEST_ptr(pkey = EVP_PKEY_new())) in sign_and_verify()
156 EVP_PKEY_set1_DSA(pkey, dsakey); in sign_and_verify()
158 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new(pkey, NULL))) in sign_and_verify()
206 EVP_PKEY_free(pkey); in sign_and_verify()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/pae/
H A Dieee802_1x_kay.c461 static void ieee802_1x_kay_use_data_key(struct data_key *pkey);
482 psa->pkey = key; in ieee802_1x_kay_init_receive_sa()
500 static void ieee802_1x_kay_deinit_data_key(struct data_key *pkey);
507 ieee802_1x_kay_deinit_data_key(psa->pkey); in ieee802_1x_kay_deinit_receive_sa()
508 psa->pkey = NULL; in ieee802_1x_kay_deinit_receive_sa()
1248 if (is_ki_equal(&txsa->pkey->key_identifier, ki)) { in ieee802_1x_mka_get_lpn()
1499 if (sa_key && rxsa->pkey == sa_key) { in ieee802_1x_mka_decode_sak_use_body()
1627 static void ieee802_1x_kay_init_data_key(struct data_key *pkey) in ieee802_1x_kay_init_data_key() argument
1629 pkey->transmits = TRUE; in ieee802_1x_kay_init_data_key()
1630 pkey in ieee802_1x_kay_init_data_key()
2050 ieee802_1x_kay_use_data_key(struct data_key *pkey) ieee802_1x_kay_use_data_key() argument
2060 ieee802_1x_kay_deinit_data_key(struct data_key *pkey) ieee802_1x_kay_deinit_data_key() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/pae/
H A Dieee802_1x_kay.c461 static void ieee802_1x_kay_use_data_key(struct data_key *pkey);
482 psa->pkey = key; in ieee802_1x_kay_init_receive_sa()
500 static void ieee802_1x_kay_deinit_data_key(struct data_key *pkey);
507 ieee802_1x_kay_deinit_data_key(psa->pkey); in ieee802_1x_kay_deinit_receive_sa()
508 psa->pkey = NULL; in ieee802_1x_kay_deinit_receive_sa()
1248 if (is_ki_equal(&txsa->pkey->key_identifier, ki)) { in ieee802_1x_mka_get_lpn()
1537 if (sa_key && rxsa->pkey == sa_key) { in ieee802_1x_mka_decode_sak_use_body()
1664 static void ieee802_1x_kay_init_data_key(struct data_key *pkey) in ieee802_1x_kay_init_data_key() argument
1666 pkey->transmits = true; in ieee802_1x_kay_init_data_key()
1667 pkey in ieee802_1x_kay_init_data_key()
2087 ieee802_1x_kay_use_data_key(struct data_key *pkey) ieee802_1x_kay_use_data_key() argument
2097 ieee802_1x_kay_deinit_data_key(struct data_key *pkey) ieee802_1x_kay_deinit_data_key() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
H A Ddes-internal.c401 u8 pkey[8], next, tmp; in des_encrypt() local
409 pkey[i] = (tmp >> i) | next | 1; in des_encrypt()
412 pkey[i] = next | 1; in des_encrypt()
414 deskey(pkey, 0, ek); in des_encrypt()
422 os_memset(pkey, 0, sizeof(pkey)); in des_encrypt()
H A Dtls_openssl.c626 pub_rsa = cert->cert_info->key->pkey->pkey.rsa; in tls_cryptoapi_cert()
3311 EVP_PKEY *pkey; in tls_parse_pkcs12() local
3317 pkey = NULL; in tls_parse_pkcs12()
3322 if (!PKCS12_parse(p12, passwd, &pkey, &cert, &certs)) { in tls_parse_pkcs12()
3345 if (pkey) { in tls_parse_pkcs12()
3348 if (SSL_use_PrivateKey(ssl, pkey) != 1) in tls_parse_pkcs12()
3351 if (SSL_CTX_use_PrivateKey(data->ssl, pkey) != 1) in tls_parse_pkcs12()
3354 EVP_PKEY_free(pkey); in tls_parse_pkcs12()
3642 EVP_PKEY *pkey; in tls_use_private_key_file() local
5142 openssl_pkey_type_str(const EVP_PKEY *pkey) openssl_pkey_type_str() argument
5163 EVP_PKEY *pkey; openssl_debug_dump_certificate() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
H A Ddes-internal.c401 u8 pkey[8], next, tmp; in des_encrypt() local
409 pkey[i] = (tmp >> i) | next | 1; in des_encrypt()
412 pkey[i] = next | 1; in des_encrypt()
414 deskey(pkey, 0, ek); in des_encrypt()
422 os_memset(pkey, 0, sizeof(pkey)); in des_encrypt()
H A Dtls_openssl.c632 pub_rsa = cert->cert_info->key->pkey->pkey.rsa; in tls_cryptoapi_cert()
3493 EVP_PKEY *pkey; in tls_parse_pkcs12() local
3499 pkey = NULL; in tls_parse_pkcs12()
3504 if (!PKCS12_parse(p12, passwd, &pkey, &cert, &certs)) { in tls_parse_pkcs12()
3527 if (pkey) { in tls_parse_pkcs12()
3530 if (SSL_use_PrivateKey(ssl, pkey) != 1) in tls_parse_pkcs12()
3533 if (SSL_CTX_use_PrivateKey(data->ssl, pkey) != 1) in tls_parse_pkcs12()
3536 EVP_PKEY_free(pkey); in tls_parse_pkcs12()
3824 EVP_PKEY *pkey; in tls_use_private_key_file() local
3868 EVP_PKEY *pkey = GET_EVP_PKEY(private_key); tls_use_cm_key() local
3939 EVP_PKEY *pkey; tls_connection_private_key() local
5455 openssl_pkey_type_str(const EVP_PKEY *pkey) openssl_pkey_type_str() argument
5476 EVP_PKEY *pkey; openssl_debug_dump_certificate() local
[all...]
/third_party/node/deps/openssl/openssl/apps/lib/
H A Dapps.c551 EVP_PKEY *pkey = NULL; in load_key() local
561 &pkey, NULL, NULL, NULL, NULL, NULL, NULL); in load_key()
564 return pkey; in load_key()
570 EVP_PKEY *pkey = NULL; in load_pubkey() local
580 NULL, &pkey, NULL, NULL, NULL, NULL, NULL); in load_pubkey()
583 return pkey; in load_pubkey()
2220 static int do_sign_init(EVP_MD_CTX *ctx, EVP_PKEY *pkey, in do_sign_init() argument
2232 if (EVP_PKEY_get_default_digest_name(pkey, def_md, sizeof(def_md)) == 2 in do_sign_init()
2239 app_get0_propq(), pkey, NULL) in do_sign_init()
2272 int do_X509_sign(X509 *cert, EVP_PKEY *pkey, cons argument
2309 do_X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const char *md, STACK_OF(OPENSSL_STRING) *sigopts) do_X509_REQ_sign() argument
2322 do_X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const char *md, STACK_OF(OPENSSL_STRING) *sigopts) do_X509_CRL_sign() argument
2338 do_X509_verify(X509 *x, EVP_PKEY *pkey, STACK_OF(OPENSSL_STRING) *vfyopts) do_X509_verify() argument
2353 do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey, STACK_OF(OPENSSL_STRING) *vfyopts) do_X509_REQ_verify() argument
[all...]
/third_party/openssl/apps/lib/
H A Dapps.c551 EVP_PKEY *pkey = NULL; in load_key() local
561 &pkey, NULL, NULL, NULL, NULL, NULL, NULL); in load_key()
564 return pkey; in load_key()
570 EVP_PKEY *pkey = NULL; in load_pubkey() local
580 NULL, &pkey, NULL, NULL, NULL, NULL, NULL); in load_pubkey()
583 return pkey; in load_pubkey()
2213 static int do_sign_init(EVP_MD_CTX *ctx, EVP_PKEY *pkey, in do_sign_init() argument
2225 if (EVP_PKEY_get_default_digest_name(pkey, def_md, sizeof(def_md)) == 2 in do_sign_init()
2232 app_get0_propq(), pkey, NULL) in do_sign_init()
2265 int do_X509_sign(X509 *cert, EVP_PKEY *pkey, cons argument
2302 do_X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const char *md, STACK_OF(OPENSSL_STRING) *sigopts) do_X509_REQ_sign() argument
2315 do_X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const char *md, STACK_OF(OPENSSL_STRING) *sigopts) do_X509_CRL_sign() argument
2331 do_X509_verify(X509 *x, EVP_PKEY *pkey, STACK_OF(OPENSSL_STRING) *vfyopts) do_X509_verify() argument
2346 do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey, STACK_OF(OPENSSL_STRING) *vfyopts) do_X509_REQ_verify() argument
[all...]
/third_party/node/deps/openssl/openssl/crypto/ct/
H A Dct_vfy.c101 if (!SCT_is_complete(sct) || sctx->pkey == NULL || in SCT_CTX_verify()
126 sctx->propq, sctx->pkey, NULL)) in SCT_CTX_verify()
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Di2d_evp.c90 int i2d_KeyParams_bio(BIO *bp, const EVP_PKEY *pkey) in i2d_KeyParams_bio() argument
92 return ASN1_i2d_bio_of(EVP_PKEY, i2d_KeyParams, bp, pkey); in i2d_KeyParams_bio()
/third_party/openssl/crypto/asn1/
H A Di2d_evp.c90 int i2d_KeyParams_bio(BIO *bp, const EVP_PKEY *pkey) in i2d_KeyParams_bio() argument
92 return ASN1_i2d_bio_of(EVP_PKEY, i2d_KeyParams, bp, pkey); in i2d_KeyParams_bio()
/third_party/openssl/crypto/ct/
H A Dct_vfy.c101 if (!SCT_is_complete(sct) || sctx->pkey == NULL || in SCT_CTX_verify()
126 sctx->propq, sctx->pkey, NULL)) in SCT_CTX_verify()
/third_party/node/deps/openssl/openssl/ssl/statem/
H A Dstatem_lib.c296 EVP_PKEY *pkey = NULL; in tls_construct_cert_verify() local
310 pkey = s->s3.tmp.cert->privatekey; in tls_construct_cert_verify()
312 if (pkey == NULL || !tls1_lookup_md(s->ctx, lu, &md)) { in tls_construct_cert_verify()
336 s->ctx->libctx, s->ctx->propq, pkey, in tls_construct_cert_verify()
420 EVP_PKEY *pkey = NULL; in tls_process_cert_verify() local
442 pkey = X509_get0_pubkey(peer); in tls_process_cert_verify()
443 if (pkey == NULL) { in tls_process_cert_verify()
448 if (ssl_cert_lookup_by_pkey(pkey, NULL) == NULL) { in tls_process_cert_verify()
461 if (tls12_check_peer_sigalg(s, sigalg, pkey) <= 0) { in tls_process_cert_verify()
465 } else if (!tls1_set_peer_legacy_sigalg(s, pkey)) { in tls_process_cert_verify()
[all...]
/third_party/openssl/ssl/statem/
H A Dstatem_lib.c275 EVP_PKEY *pkey = NULL; in tls_construct_cert_verify() local
289 pkey = s->s3.tmp.cert->privatekey; in tls_construct_cert_verify()
291 if (pkey == NULL || !tls1_lookup_md(s->ctx, lu, &md)) { in tls_construct_cert_verify()
315 s->ctx->libctx, s->ctx->propq, pkey, in tls_construct_cert_verify()
399 EVP_PKEY *pkey = NULL; in tls_process_cert_verify() local
421 pkey = X509_get0_pubkey(peer); in tls_process_cert_verify()
422 if (pkey == NULL) { in tls_process_cert_verify()
427 if (ssl_cert_lookup_by_pkey(pkey, NULL) == NULL) { in tls_process_cert_verify()
440 if (tls12_check_peer_sigalg(s, sigalg, pkey) <= 0) { in tls_process_cert_verify()
444 } else if (!tls1_set_peer_legacy_sigalg(s, pkey)) { in tls_process_cert_verify()
[all...]
/third_party/node/deps/openssl/openssl/crypto/x509/
H A Dx509_vfy.c95 EVP_PKEY *pkey; in X509_self_signed() local
97 if ((pkey = X509_get0_pubkey(cert)) == NULL) { /* handles cert == NULL */ in X509_self_signed()
107 return X509_verify(cert, pkey); in X509_self_signed()
1795 EVP_PKEY *pkey; in internal_verify() local
1819 if ((pkey = X509_get0_pubkey(xi)) == NULL) { in internal_verify()
1823 CB_FAIL_IF(X509_verify(xs, pkey) <= 0, in internal_verify()
1980 /* Copy any missing public key parameters up the chain towards pkey */
1981 int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) in X509_get_pubkey_parameters() argument
1986 if (pkey != NULL && !EVP_PKEY_missing_parameters(pkey)) in X509_get_pubkey_parameters()
3382 EVP_PKEY *pkey = X509_get0_pubkey(cert); check_key_level() local
3412 EVP_PKEY *pkey = X509_get0_pubkey(cert); check_curve() local
[all...]
/third_party/openssl/crypto/x509/
H A Dx509_vfy.c95 EVP_PKEY *pkey; in X509_self_signed() local
97 if ((pkey = X509_get0_pubkey(cert)) == NULL) { /* handles cert == NULL */ in X509_self_signed()
107 return X509_verify(cert, pkey); in X509_self_signed()
1797 EVP_PKEY *pkey; in internal_verify() local
1821 if ((pkey = X509_get0_pubkey(xi)) == NULL) { in internal_verify()
1825 CB_FAIL_IF(X509_verify(xs, pkey) <= 0, in internal_verify()
1982 /* Copy any missing public key parameters up the chain towards pkey */
1983 int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) in X509_get_pubkey_parameters() argument
1988 if (pkey != NULL && !EVP_PKEY_missing_parameters(pkey)) in X509_get_pubkey_parameters()
3384 EVP_PKEY *pkey = X509_get0_pubkey(cert); check_key_level() local
3414 EVP_PKEY *pkey = X509_get0_pubkey(cert); check_curve() local
[all...]
/third_party/libcoap/src/
H A Dcoap_openssl.c1225 EVP_PKEY *pkey = bp ? PEM_read_bio_PrivateKey(bp, NULL, 0, NULL) : NULL; in setup_pki_server() local
1227 if (!pkey || !SSL_CTX_use_PrivateKey(ctx, pkey)) { in setup_pki_server()
1232 if (pkey) in setup_pki_server()
1233 EVP_PKEY_free(pkey); in setup_pki_server()
1238 if (pkey) in setup_pki_server()
1239 EVP_PKEY_free(pkey); in setup_pki_server()
1348 EVP_PKEY *pkey = ENGINE_load_private_key(ssl_engine, in setup_pki_server() local
1352 if (!pkey) { in setup_pki_server()
1358 if (!SSL_CTX_use_PrivateKey(ctx, pkey)) { in setup_pki_server()
1588 EVP_PKEY *pkey = bp ? PEM_read_bio_PrivateKey(bp, NULL, 0, NULL) : NULL; setup_pki_ssl() local
1723 EVP_PKEY *pkey = ENGINE_load_private_key(ssl_engine, setup_pki_ssl() local
[all...]
/third_party/node/src/crypto/
H A Dcrypto_keygen.h173 EVP_PKEY* pkey = nullptr; in DoKeyGen()
174 if (!EVP_PKEY_keygen(ctx.get(), &pkey)) in DoKeyGen()
177 params->key = ManagedEVPPKey(EVPKeyPointer(pkey)); in DoKeyGen()
/third_party/nghttp2/lib/
H A Dnghttp2_map.c108 nghttp2_map_key_type *pkey, void **pdata) { in map_bucket_swap()
114 bkt->key = *pkey; in map_bucket_swap()
118 *pkey = key; in map_bucket_swap()
107 map_bucket_swap(nghttp2_map_bucket *bkt, uint32_t *phash, nghttp2_map_key_type *pkey, void **pdata) map_bucket_swap() argument
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_map.c108 ngtcp2_map_key_type *pkey, void **pdata) { in map_bucket_swap()
114 bkt->key = *pkey; in map_bucket_swap()
118 *pkey = key; in map_bucket_swap()
107 map_bucket_swap(ngtcp2_map_bucket *bkt, uint32_t *phash, ngtcp2_map_key_type *pkey, void **pdata) map_bucket_swap() argument
/third_party/node/deps/nghttp2/lib/
H A Dnghttp2_map.c108 nghttp2_map_key_type *pkey, void **pdata) { in map_bucket_swap()
114 bkt->key = *pkey; in map_bucket_swap()
118 *pkey = key; in map_bucket_swap()
107 map_bucket_swap(nghttp2_map_bucket *bkt, uint32_t *phash, nghttp2_map_key_type *pkey, void **pdata) map_bucket_swap() argument

Completed in 43 milliseconds

1...<<11121314151617181920>>...40