Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 11 of 11) sorted by relevance

/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls-rsa.c94 mbedtls_pk_context *pkey = os_zalloc(sizeof(*pkey)); in crypto_public_key_import() local
96 if (!pkey) in crypto_public_key_import()
99 mbedtls_pk_init(pkey); in crypto_public_key_import()
100 ret = mbedtls_pk_parse_public_key(pkey, key, len); in crypto_public_key_import()
104 os_free(pkey); in crypto_public_key_import()
108 return (struct crypto_public_key *)pkey; in crypto_public_key_import()
116 mbedtls_pk_context *pkey = os_zalloc(sizeof(mbedtls_pk_context)); in crypto_private_key_import() local
117 if (!pkey) in crypto_private_key_import()
120 mbedtls_pk_init(pkey); in crypto_private_key_import()
122 ret = mbedtls_pk_parse_key(pkey, key, len, (const unsigned char *)passwd, in crypto_private_key_import()
[all …]
Dcrypto_mbedtls-ec.c518 struct crypto_key *pkey = NULL; in crypto_ec_set_pubkey_point() local
553 pkey = (struct crypto_key *)key; in crypto_ec_set_pubkey_point()
555 return pkey; in crypto_ec_set_pubkey_point()
561 pkey = NULL; in crypto_ec_set_pubkey_point()
562 return pkey; in crypto_ec_set_pubkey_point()
568 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_free_key() local
569 mbedtls_pk_free(pkey); in crypto_ec_free_key()
575 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_get_public_key() local
577 return (struct crypto_ec_point *)&mbedtls_pk_ec(*pkey)->MBEDTLS_PRIVATE(Q); in crypto_ec_get_public_key()
583 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_get_priv_key_der() local
[all …]
Dcrypto_mbedtls.c775 u8 pkey[8], next, tmp; in des_encrypt() local
782 pkey[i] = (tmp >> i) | next | 1; in des_encrypt()
785 pkey[i] = next | 1; in des_encrypt()
788 ret = mbedtls_des_setkey_enc(&des, pkey); in des_encrypt()
/hal_espressif-3.7.0/components/wpa_supplicant/src/crypto/
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 forced_memzero(pkey, sizeof(pkey)); in des_encrypt()
/hal_espressif-3.7.0/components/mbedtls/test_apps/main/
Dtest_esp_crt_bundle.c67 mbedtls_pk_context pkey; member
102 mbedtls_pk_init( &server->pkey ); in server_setup()
115 ret = mbedtls_pk_parse_key( &server->pkey, (const unsigned char *)server_pk_start, in server_setup()
147 if (( ret = mbedtls_ssl_conf_own_cert( &server->conf, &server->cert, &server->pkey ) ) != 0 ) { in server_setup()
206 mbedtls_pk_free( &endpoint->pkey ); in endpoint_teardown()
226 mbedtls_pk_init( &client->pkey ); in client_setup()
/hal_espressif-3.7.0/components/bt/common/btc/profile/esp/blufi/
Dblufi_prf.c509 dst->client_pkey.pkey = osi_malloc(src->client_pkey.pkey_len); in btc_blufi_cb_deep_copy()
510 if (dst->client_pkey.pkey == NULL) { in btc_blufi_cb_deep_copy()
513 memcpy(dst->client_pkey.pkey, src->client_pkey.pkey, src->client_pkey.pkey_len); in btc_blufi_cb_deep_copy()
516 dst->server_pkey.pkey = osi_malloc(src->server_pkey.pkey_len); in btc_blufi_cb_deep_copy()
517 if (dst->server_pkey.pkey == NULL) { in btc_blufi_cb_deep_copy()
520 memcpy(dst->server_pkey.pkey, src->server_pkey.pkey, src->server_pkey.pkey_len); in btc_blufi_cb_deep_copy()
565 osi_free(param->client_pkey.pkey); in btc_blufi_cb_deep_free()
568 osi_free(param->server_pkey.pkey); in btc_blufi_cb_deep_free()
Dblufi_protocol.c221 param.client_pkey.pkey = &data[0]; in btc_blufi_protocol_handler()
230 param.client_pkey.pkey = &data[0]; in btc_blufi_protocol_handler()
/hal_espressif-3.7.0/components/bt/common/api/include/api/
Desp_blufi_api.h268 …uint8_t *pkey; /*!< Client Private Key point, if Client certificate n… member
275 …uint8_t *pkey; /*!< Client Private Key point, if Client certificate n… member
/hal_espressif-3.7.0/components/wpa_supplicant/src/tls/
Dtlsv1_cred.c271 struct crypto_private_key *pkey; in tlsv1_set_key_pem() local
299 pkey = crypto_private_key_import(der, der_len, NULL); in tlsv1_set_key_pem()
301 return pkey; in tlsv1_set_key_pem()
312 struct crypto_private_key *pkey; in tlsv1_set_key_enc_pem() local
327 pkey = crypto_private_key_import(der, der_len, passwd); in tlsv1_set_key_enc_pem()
329 return pkey; in tlsv1_set_key_enc_pem()
/hal_espressif-3.7.0/components/wpa_supplicant/src/common/
Ddpp.c175 static struct wpabuf * dpp_get_pubkey_point(struct crypto_key *pkey, int prefix) in dpp_get_pubkey_point() argument
181 len = crypto_ec_get_publickey_buf(pkey, pos, 0); in dpp_get_pubkey_point()
195 res = crypto_ec_get_publickey_buf(pkey, pos, len); in dpp_get_pubkey_point()
218 struct crypto_key *pkey = NULL; in dpp_set_pubkey_point() local
225 pkey = crypto_ec_set_pubkey_point(group, buf, in dpp_set_pubkey_point()
230 return pkey; in dpp_set_pubkey_point()
514 struct crypto_key *pkey; in dpp_parse_uri_pk() local
559 pkey = crypto_ec_parse_subpub_key((unsigned char *)p, data_len); in dpp_parse_uri_pk()
562 if (!pkey) { in dpp_parse_uri_pk()
568 if (!crypto_is_ec_key(pkey)) { in dpp_parse_uri_pk()
[all …]
/hal_espressif-3.7.0/components/bt/porting/nimble/include/nimble/
Dhci_common.h468 uint8_t pkey[64]; member