Searched refs:P255_WIDTH (Results 1 – 2 of 2) sorted by relevance
/mbedtls-3.7.0/library/ |
D | ecp_curves_new.c | 5401 #define P255_WIDTH (255 / 8 / sizeof(mbedtls_mpi_uint) + 1) macro 5425 mbedtls_mpi_uint *carry = mbedtls_calloc(P255_WIDTH, ciL); in mbedtls_ecp_mod_p255_raw() 5431 if (X_Limbs > P255_WIDTH) { in mbedtls_ecp_mod_p255_raw() 5433 mbedtls_mpi_uint * const A1 = X + P255_WIDTH; in mbedtls_ecp_mod_p255_raw() 5434 const size_t A1_limbs = X_Limbs - P255_WIDTH; in mbedtls_ecp_mod_p255_raw() 5437 *carry = mbedtls_mpi_core_mla(X, P255_WIDTH, A1, A1_limbs, 38); in mbedtls_ecp_mod_p255_raw() 5445 *carry += (X[P255_WIDTH - 1] >> (biL - 1)); in mbedtls_ecp_mod_p255_raw() 5449 X[P255_WIDTH - 1] <<= 1; X[P255_WIDTH - 1] >>= 1; in mbedtls_ecp_mod_p255_raw() 5457 (void) mbedtls_mpi_core_add(X, X, carry, P255_WIDTH); in mbedtls_ecp_mod_p255_raw()
|
D | ecp_curves.c | 5192 #define P255_WIDTH (255 / 8 / sizeof(mbedtls_mpi_uint) + 1) macro 5200 mbedtls_mpi_uint Mp[P255_WIDTH]; in ecp_mod_p255() 5203 mbedtls_mpi_uint * const NT_p = N->p + P255_WIDTH; in ecp_mod_p255() 5204 const size_t NT_n = N->n - P255_WIDTH; in ecp_mod_p255() 5205 if (N->n <= P255_WIDTH) { in ecp_mod_p255() 5208 if (NT_n > P255_WIDTH) { in ecp_mod_p255() 5217 mbedtls_mpi_core_mla(N->p, P255_WIDTH + 1, in ecp_mod_p255()
|