Home
last modified time | relevance | path

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

/hal_espressif-latest/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.c519 struct crypto_key *pkey = NULL; in crypto_ec_set_pubkey_point() local
556 pkey = (struct crypto_key *)key; in crypto_ec_set_pubkey_point()
558 return pkey; in crypto_ec_set_pubkey_point()
564 pkey = NULL; in crypto_ec_set_pubkey_point()
565 return pkey; in crypto_ec_set_pubkey_point()
571 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_free_key() local
572 mbedtls_pk_free(pkey); in crypto_ec_free_key()
578 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_get_public_key() local
580 return (struct crypto_ec_point *)&mbedtls_pk_ec(*pkey)->MBEDTLS_PRIVATE(Q); in crypto_ec_get_public_key()
586 mbedtls_pk_context *pkey = (mbedtls_pk_context *)key; in crypto_ec_get_priv_key_der() local
[all …]
Dcrypto_mbedtls.c788 u8 pkey[8], next, tmp; in des_encrypt() local
795 pkey[i] = (tmp >> i) | next | 1; in des_encrypt()
798 pkey[i] = next | 1; in des_encrypt()
801 ret = mbedtls_des_setkey_enc(&des, pkey); in des_encrypt()
/hal_espressif-latest/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-latest/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-latest/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-latest/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-latest/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 …]