Searched refs:ACCESS_ECDH (Results 1 – 1 of 1) sorted by relevance
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | crypto_mbedtls-ec.c | 33 #define ACCESS_ECDH(S, var) S->MBEDTLS_PRIVATE(var) macro 35 #define ACCESS_ECDH(S, var) S->MBEDTLS_PRIVATE(ctx).MBEDTLS_PRIVATE(mbed_ecdh).MBEDTLS_PRIVATE(var) macro 1086 if ((mbedtls_ecp_group_load(ACCESS_ECDH(&ctx, grp), crypto_mbedtls_get_grp_id(group))) != 0) { in crypto_ecdh_init() 1102 …if (mbedtls_ecdh_gen_public(ACCESS_ECDH(&ctx, grp), ACCESS_ECDH(&ctx, d), ACCESS_ECDH(&ctx, Q), mb… in crypto_ecdh_init() 1126 size_t prime_len = ACCESS_ECDH(ctx, grp).pbits/8; in crypto_ecdh_get_pubkey() 1135 mbedtls_mpi_write_binary(ACCESS_ECDH(&ctx, Q).MBEDTLS_PRIVATE(X), buf, prime_len); in crypto_ecdh_get_pubkey() 1167 len_prime = ACCESS_ECDH(ctx, grp).pbits/8; in crypto_ecdh_set_peerkey() 1171 ec_pt = crypto_ec_point_init((struct crypto_ec*)ACCESS_ECDH(&ctx, grp)); in crypto_ecdh_set_peerkey() 1177 …if (crypto_ec_point_solve_y_coord((struct crypto_ec*)ACCESS_ECDH(&ctx, grp), ec_pt, bn_x, inc_y) !… in crypto_ecdh_set_peerkey() 1189 if (crypto_ec_point_to_bin((struct crypto_ec*)ACCESS_ECDH(&ctx, grp), ec_pt, px, py) != 0) { in crypto_ecdh_set_peerkey() [all …]
|