Lines Matching refs:Q
75 mbedtls_mpi *d, mbedtls_ecp_point *Q, in ecdh_gen_public_restartable() argument
88 MBEDTLS_MPI_CHK( mbedtls_ecp_mul_restartable( grp, Q, d, &grp->G, in ecdh_gen_public_restartable()
98 int mbedtls_ecdh_gen_public( mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q, in mbedtls_ecdh_gen_public() argument
104 ECDH_VALIDATE_RET( Q != NULL ); in mbedtls_ecdh_gen_public()
106 return( ecdh_gen_public_restartable( grp, d, Q, f_rng, p_rng, NULL ) ); in mbedtls_ecdh_gen_public()
116 const mbedtls_ecp_point *Q, const mbedtls_mpi *d, in ecdh_compute_shared_restartable() argument
126 MBEDTLS_MPI_CHK( mbedtls_ecp_mul_restartable( grp, &P, d, Q, in ecdh_compute_shared_restartable()
147 const mbedtls_ecp_point *Q, const mbedtls_mpi *d, in mbedtls_ecdh_compute_shared() argument
152 ECDH_VALIDATE_RET( Q != NULL ); in mbedtls_ecdh_compute_shared()
155 return( ecdh_compute_shared_restartable( grp, z, Q, d, in mbedtls_ecdh_compute_shared()
164 mbedtls_ecp_point_init( &ctx->Q ); in ecdh_init_internal()
243 mbedtls_ecp_point_free( &ctx->Q ); in ecdh_free_internal()
325 if( ( ret = ecdh_gen_public_restartable( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_params_internal()
329 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_params_internal()
341 if( ( ret = mbedtls_ecp_tls_write_point( &ctx->grp, &ctx->Q, point_format, in ecdh_make_params_internal()
455 return( mbedtls_ecp_copy( &ctx->Qp, &key->Q ) ); in ecdh_get_params_internal()
461 if( ( ret = mbedtls_ecp_copy( &ctx->Q, &key->Q ) ) != 0 || in ecdh_get_params_internal()
546 if( ( ret = ecdh_gen_public_restartable( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_public_internal()
550 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_public_internal()
555 return mbedtls_ecp_tls_write_point( &ctx->grp, &ctx->Q, point_format, olen, in ecdh_make_public_internal()
742 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_tls13_make_params_internal()
746 ret = mbedtls_ecp_point_write_binary( &ctx->grp, &ctx->Q, point_format, in ecdh_tls13_make_params_internal()