Lines Matching defs:XmP
2951 mbedtls_mpi XmP;
2953 mbedtls_mpi_init(&XmP);
2957 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&XmP, X));
2958 while (mbedtls_mpi_cmp_mpi(&XmP, P) >= 0) {
2959 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&XmP, &XmP, P));
2965 if (mbedtls_mpi_cmp_int(&XmP, 1) <= 0) { /* takes care of 0 and 1 */
2972 if (mbedtls_mpi_cmp_mpi(&XmP, &ecp_x25519_bad_point_1) == 0) {
2977 if (mbedtls_mpi_cmp_mpi(&XmP, &ecp_x25519_bad_point_2) == 0) {
2986 /* Final check: check if XmP + 1 is P (final because it changes XmP!) */
2987 MBEDTLS_MPI_CHK(mbedtls_mpi_add_int(&XmP, &XmP, 1));
2988 if (mbedtls_mpi_cmp_mpi(&XmP, P) == 0) {
2996 mbedtls_mpi_free(&XmP);