Home
last modified time | relevance | path

Searched refs:P521_WIDTH (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/library/
Decp_curves.c5137 #define P521_WIDTH (521 / 8 / sizeof(mbedtls_mpi_uint) + 1) macro
5151 mbedtls_mpi_uint Mp[P521_WIDTH + 1]; in ecp_mod_p521()
5156 if (N->n < P521_WIDTH) { in ecp_mod_p521()
5162 M.n = N->n - (P521_WIDTH - 1); in ecp_mod_p521()
5163 if (M.n > P521_WIDTH + 1) { in ecp_mod_p521()
5164 M.n = P521_WIDTH + 1; in ecp_mod_p521()
5167 memcpy(Mp, N->p + P521_WIDTH - 1, M.n * sizeof(mbedtls_mpi_uint)); in ecp_mod_p521()
5171 N->p[P521_WIDTH - 1] &= P521_MASK; in ecp_mod_p521()
5172 for (i = P521_WIDTH; i < N->n; i++) { in ecp_mod_p521()
5183 #undef P521_WIDTH
Decp_curves_new.c5313 #define P521_WIDTH (521 / 8 / sizeof(mbedtls_mpi_uint) + 1) macro
5343 size_t X0_limbs = P521_WIDTH; in mbedtls_ecp_mod_p521_raw()
5374 addend += (X[P521_WIDTH - 1] >> 9); in mbedtls_ecp_mod_p521_raw()
5375 X[P521_WIDTH - 1] &= P521_MASK; in mbedtls_ecp_mod_p521_raw()
5379 mbedtls_mpi_uint *addend_arr = X + P521_WIDTH; in mbedtls_ecp_mod_p521_raw()
5381 (void) mbedtls_mpi_core_add(X, X, addend_arr, P521_WIDTH); in mbedtls_ecp_mod_p521_raw()
5391 #undef P521_WIDTH