/hal_espressif-2.7.6/components/openssl/library/ |
D | ssl_pkey.c | 27 EVP_PKEY *pkey; in __EVP_PKEY_new() local 29 pkey = ssl_mem_zalloc(sizeof(EVP_PKEY)); in __EVP_PKEY_new() 30 if (!pkey) { in __EVP_PKEY_new() 35 pkey->ref_counter = 1; in __EVP_PKEY_new() 38 pkey->method = ipk->method; in __EVP_PKEY_new() 40 pkey->method = EVP_PKEY_method(); in __EVP_PKEY_new() 43 ret = EVP_PKEY_METHOD_CALL(new, pkey, ipk); in __EVP_PKEY_new() 49 return pkey; in __EVP_PKEY_new() 52 ssl_mem_free(pkey); in __EVP_PKEY_new() 68 void EVP_PKEY_free(EVP_PKEY *pkey) in EVP_PKEY_free() argument [all …]
|
D | ssl_cert.c | 38 ipk = ic->pkey; in __ssl_cert_new() 45 cert->pkey = __EVP_PKEY_new(ipk); in __ssl_cert_new() 46 if (!cert->pkey) { in __ssl_cert_new() 60 EVP_PKEY_free(cert->pkey); in __ssl_cert_new() 84 EVP_PKEY_free(cert->pkey); in ssl_cert_free()
|
/hal_espressif-2.7.6/components/wpa_supplicant/src/crypto/ |
D | crypto_mbedtls-rsa.c | 96 mbedtls_pk_context *pkey = os_zalloc(sizeof(*pkey)); in crypto_public_key_import() local 98 if (!pkey) in crypto_public_key_import() 101 mbedtls_pk_init(pkey); in crypto_public_key_import() 102 ret = mbedtls_pk_parse_public_key(pkey, key, len); in crypto_public_key_import() 106 os_free(pkey); in crypto_public_key_import() 110 return (struct crypto_public_key *)pkey; in crypto_public_key_import() 118 mbedtls_pk_context *pkey = os_zalloc(sizeof(mbedtls_pk_context)); in crypto_private_key_import() local 119 if (!pkey) in crypto_private_key_import() 122 mbedtls_pk_init(pkey); in crypto_private_key_import() 124 …ret = mbedtls_pk_parse_key(pkey, key, len, (const unsigned char *)passwd, passwd ? os_strlen(passw… in crypto_private_key_import() [all …]
|
D | crypto_mbedtls-ec.c | 489 struct crypto_key *pkey = NULL; in crypto_ec_set_pubkey_point() local 535 pkey = (struct crypto_key *)key; in crypto_ec_set_pubkey_point() 538 return pkey; in crypto_ec_set_pubkey_point() 544 pkey = NULL; in crypto_ec_set_pubkey_point() 545 return pkey; in crypto_ec_set_pubkey_point() 551 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_free_key() local 552 mbedtls_pk_free(pkey); in crypto_ec_free_key() 558 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_get_public_key() local 560 return (struct crypto_ec_point *)&mbedtls_pk_ec(*pkey)->Q; in crypto_ec_get_public_key() 566 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_get_priv_key_der() local [all …]
|
D | des-internal.c | 401 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()
|
/hal_espressif-2.7.6/examples/bluetooth/nimble/bleprph/main/ |
D | main.c | 243 struct ble_sm_io pkey = {0}; in bleprph_gap_event() local 247 pkey.action = event->passkey.params.action; in bleprph_gap_event() 248 pkey.passkey = 123456; // This is the passkey to be entered on peer in bleprph_gap_event() 249 ESP_LOGI(tag, "Enter passkey %d on the peer side", pkey.passkey); in bleprph_gap_event() 250 rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey); in bleprph_gap_event() 255 pkey.action = event->passkey.params.action; in bleprph_gap_event() 257 pkey.numcmp_accept = key; in bleprph_gap_event() 259 pkey.numcmp_accept = 0; in bleprph_gap_event() 262 rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey); in bleprph_gap_event() 266 pkey.action = event->passkey.params.action; in bleprph_gap_event() [all …]
|
D | scli.c | 43 char pkey[8]; in enter_passkey_handler() local 50 sscanf(argv[1], "%s", pkey); in enter_passkey_handler() 52 num = pkey[0]; in enter_passkey_handler() 55 if ((strcasecmp(pkey, "Y") == 0) || (strcasecmp(pkey, "Yes") == 0)) { in enter_passkey_handler() 63 sscanf(pkey, "%d", &key); in enter_passkey_handler()
|
/hal_espressif-2.7.6/examples/peripherals/secure_element/atecc608_ecdsa/main/ |
D | ecdsa_example_main.c | 112 mbedtls_pk_context pkey; in atca_ecdsa_test() local 122 ret = atca_mbedtls_pk_init(&pkey, 0); in atca_ecdsa_test() 130 mbedtls_pk_init(&pkey); in atca_ecdsa_test() 131 ret = mbedtls_pk_setup(&pkey, in atca_ecdsa_test() 139 mbedtls_pk_ec( pkey ), in atca_ecdsa_test() 149 ret = mbedtls_pk_sign(&pkey, MBEDTLS_MD_SHA256, hash, 0, buf, &olen, in atca_ecdsa_test() 158 ret = mbedtls_pk_verify(&pkey, MBEDTLS_MD_SHA256, hash, 0, in atca_ecdsa_test()
|
/hal_espressif-2.7.6/components/openssl/platform/ |
D | ssl_pm.c | 57 mbedtls_pk_context *pkey; member 256 struct pkey_pm *pkey_pm = (struct pkey_pm *)ssl->cert->pkey->pkey_pm; in ssl_pm_reload_crt() 291 if (crt_pm->x509_crt && pkey_pm->pkey) { in ssl_pm_reload_crt() 292 ret = mbedtls_ssl_conf_own_cert(&ssl_pm->conf, crt_pm->x509_crt, pkey_pm->pkey); in ssl_pm_reload_crt() 667 pkey_pm->ex_pkey = m_pkey_pm->pkey; in pkey_pm_new() 677 if (pkey_pm->pkey) { in pkey_pm_free() 678 mbedtls_pk_free(pkey_pm->pkey); in pkey_pm_free() 680 ssl_mem_free(pkey_pm->pkey); in pkey_pm_free() 681 pkey_pm->pkey = NULL; in pkey_pm_free() 694 if (pkey_pm->pkey) in pkey_pm_load() [all …]
|
/hal_espressif-2.7.6/components/mbedtls/test/ |
D | test_esp_crt_bundle.c | 73 mbedtls_pk_context pkey; member 99 mbedtls_pk_init( &server->pkey ); in server_setup() 112 ret = mbedtls_pk_parse_key( &server->pkey, (const unsigned char *)server_pk_start, in server_setup() 144 if (( ret = mbedtls_ssl_conf_own_cert( &server->conf, &server->cert, &server->pkey ) ) != 0 ) { in server_setup() 200 mbedtls_pk_free( &endpoint->pkey ); in endpoint_teardown() 217 mbedtls_pk_init( &client->pkey ); in client_setup()
|
/hal_espressif-2.7.6/components/openssl/include/internal/ |
D | ssl_types.h | 127 EVP_PKEY *pkey; member 323 int (*pkey_new)(EVP_PKEY *pkey, EVP_PKEY *m_pkey); 325 void (*pkey_free)(EVP_PKEY *pkey); 327 int (*pkey_load)(EVP_PKEY *pkey, const unsigned char *buf, int len);
|
/hal_espressif-2.7.6/components/wpa_supplicant/src/tls/ |
D | tlsv1_cred.c | 227 struct crypto_private_key *pkey; in tlsv1_set_key_pem() local 255 pkey = crypto_private_key_import(der, der_len, NULL); in tlsv1_set_key_pem() 257 return pkey; in tlsv1_set_key_pem() 268 struct crypto_private_key *pkey; in tlsv1_set_key_enc_pem() local 283 pkey = crypto_private_key_import(der, der_len, passwd); in tlsv1_set_key_enc_pem() 285 return pkey; in tlsv1_set_key_enc_pem()
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/api/include/api/ |
D | esp_blufi_api.h | 262 …uint8_t *pkey; /*!< Client Private Key point, if Client certificate n… member 269 …uint8_t *pkey; /*!< Client Private Key point, if Client certificate n… member
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/esp/blufi/ |
D | blufi_prf.c | 783 dst->client_pkey.pkey = osi_malloc(src->client_pkey.pkey_len); in btc_blufi_cb_deep_copy() 784 if (dst->client_pkey.pkey == NULL) { in btc_blufi_cb_deep_copy() 787 memcpy(dst->client_pkey.pkey, src->client_pkey.pkey, src->client_pkey.pkey_len); in btc_blufi_cb_deep_copy() 790 dst->server_pkey.pkey = osi_malloc(src->server_pkey.pkey_len); in btc_blufi_cb_deep_copy() 791 if (dst->server_pkey.pkey == NULL) { in btc_blufi_cb_deep_copy() 794 memcpy(dst->server_pkey.pkey, src->server_pkey.pkey, src->server_pkey.pkey_len); in btc_blufi_cb_deep_copy() 839 osi_free(param->client_pkey.pkey); in btc_blufi_cb_deep_free() 842 osi_free(param->server_pkey.pkey); in btc_blufi_cb_deep_free()
|
D | blufi_protocol.c | 239 param.client_pkey.pkey = &data[0]; in btc_blufi_protocol_handler() 248 param.client_pkey.pkey = &data[0]; in btc_blufi_protocol_handler()
|
/hal_espressif-2.7.6/components/openssl/include/openssl/ |
D | ssl.h | 180 int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey); 1245 void SSL_CTX_set_client_cert_cb(SSL_CTX *ctx, int (*cb)(SSL *ssl, X509 **x509, EVP_PKEY **pkey));
|
/hal_espressif-2.7.6/components/wpa_supplicant/src/common/ |
D | dpp.c | 179 static struct wpabuf * dpp_get_pubkey_point(struct crypto_key *pkey, int prefix) in dpp_get_pubkey_point() argument 185 len = crypto_ec_get_publickey_buf(pkey, pos, 0); in dpp_get_pubkey_point() 199 res = crypto_ec_get_publickey_buf(pkey, pos, len); in dpp_get_pubkey_point() 222 struct crypto_key *pkey = NULL; in dpp_set_pubkey_point() local 229 pkey = crypto_ec_set_pubkey_point(group, buf, in dpp_set_pubkey_point() 234 return pkey; in dpp_set_pubkey_point() 518 struct crypto_key *pkey; in dpp_parse_uri_pk() local 563 pkey = crypto_ec_parse_subpub_key((unsigned char *)p, data_len); in dpp_parse_uri_pk() 566 if (!pkey) { in dpp_parse_uri_pk() 572 if (!crypto_is_ec_key(pkey)) { in dpp_parse_uri_pk() [all …]
|
/hal_espressif-2.7.6/components/openssl/ |
D | OpenSSL-APIs.rst | 1588 pkey - certification object point 1645 4.8 int ``SSL_CTX_use_PrivateKey`` (SSL_CTX *ctx, EVP_PKEY *pkey) 1650 pkey - private key object point 1667 EVP_PKEY *pkey; 1671 ret = SSL_CTX_use_PrivateKey(ctx, pkey);
|