Lines Matching refs:MBEDTLS_MPI_CHK

4627     MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->A, curve25519_a24));  in ecp_use_curve25519()
4630 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->P, 1)); in ecp_use_curve25519()
4631 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_l(&grp->P, 255)); in ecp_use_curve25519()
4632 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&grp->P, &grp->P, 19)); in ecp_use_curve25519()
4636 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&grp->N, in ecp_use_curve25519()
4638 MBEDTLS_MPI_CHK(mbedtls_mpi_set_bit(&grp->N, 252, 1)); in ecp_use_curve25519()
4642 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.X, 9)); in ecp_use_curve25519()
4643 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.Z, 1)); in ecp_use_curve25519()
4679 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->A, curve448_a24)); in ecp_use_curve448()
4682 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->P, 1)); in ecp_use_curve448()
4683 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_l(&grp->P, 224)); in ecp_use_curve448()
4684 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&grp->P, &grp->P, 1)); in ecp_use_curve448()
4685 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_l(&grp->P, 224)); in ecp_use_curve448()
4686 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&grp->P, &grp->P, 1)); in ecp_use_curve448()
4691 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.X, 5)); in ecp_use_curve448()
4692 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.Z, 1)); in ecp_use_curve448()
4696 MBEDTLS_MPI_CHK(mbedtls_mpi_set_bit(&grp->N, 446, 1)); in ecp_use_curve448()
4697 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&Ns, in ecp_use_curve448()
4699 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&grp->N, &grp->N, &Ns)); in ecp_use_curve448()
4869 MBEDTLS_MPI_CHK(mbedtls_mpi_grow(N, 6 * WIDTH)); in ecp_mod_p192()
4960 MBEDTLS_MPI_CHK(mbedtls_mpi_grow(N, (b) * 2 / biL + 1)); \
5168 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_r(&M, 521 % (8 * sizeof(mbedtls_mpi_uint)))); in ecp_mod_p521()
5177 MBEDTLS_MPI_CHK(mbedtls_mpi_add_abs(N, N, &M)); in ecp_mod_p521()
5276 MBEDTLS_MPI_CHK(mbedtls_mpi_add_mpi(N, N, &M)); in ecp_mod_p448()
5282 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_r(&Q, 224)); in ecp_mod_p448()
5283 MBEDTLS_MPI_CHK(mbedtls_mpi_add_mpi(N, N, &Q)); in ecp_mod_p448()
5292 MBEDTLS_MPI_CHK(mbedtls_mpi_add_mpi(&M, &M, &Q)); in ecp_mod_p448()
5294 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_l(&M, 224)); in ecp_mod_p448()
5295 MBEDTLS_MPI_CHK(mbedtls_mpi_add_mpi(N, N, &M)); in ecp_mod_p448()
5343 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_r(&M, shift)); in ecp_mod_koblitz()
5356 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&M, &M, &R)); in ecp_mod_koblitz()
5357 MBEDTLS_MPI_CHK(mbedtls_mpi_add_abs(N, N, &M)); in ecp_mod_koblitz()
5369 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_r(&M, shift)); in ecp_mod_koblitz()
5382 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&M, &M, &R)); in ecp_mod_koblitz()
5383 MBEDTLS_MPI_CHK(mbedtls_mpi_add_abs(N, N, &M)); in ecp_mod_koblitz()