Lines Matching refs:Q
44 int mbedtls_ecdh_gen_public( mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q, in mbedtls_ecdh_gen_public() argument
48 return mbedtls_ecp_gen_keypair( grp, d, Q, f_rng, p_rng ); in mbedtls_ecdh_gen_public()
55 const mbedtls_ecp_point *Q, const mbedtls_mpi *d, in mbedtls_ecdh_compute_shared() argument
67 MBEDTLS_MPI_CHK( mbedtls_ecp_check_pubkey( grp, Q ) ); in mbedtls_ecdh_compute_shared()
69 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( grp, &P, d, Q, f_rng, p_rng ) ); in mbedtls_ecdh_compute_shared()
102 mbedtls_ecp_point_free( &ctx->Q ); in mbedtls_ecdh_free()
129 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, f_rng, p_rng ) ) in mbedtls_ecdh_make_params()
140 if( ( ret = mbedtls_ecp_tls_write_point( &ctx->grp, &ctx->Q, ctx->point_format, in mbedtls_ecdh_make_params()
183 return( mbedtls_ecp_copy( &ctx->Qp, &key->Q ) ); in mbedtls_ecdh_get_params()
189 if( ( ret = mbedtls_ecp_copy( &ctx->Q, &key->Q ) ) != 0 || in mbedtls_ecdh_get_params()
209 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, f_rng, p_rng ) ) in mbedtls_ecdh_make_public()
213 return mbedtls_ecp_tls_write_point( &ctx->grp, &ctx->Q, ctx->point_format, in mbedtls_ecdh_make_public()