Lines Matching refs:P521_WIDTH
5313 #define P521_WIDTH (521 / 8 / sizeof(mbedtls_mpi_uint) + 1)
5340 /* Step 1: Reduction to P521_WIDTH limbs */
5343 size_t X0_limbs = P521_WIDTH;
5347 /* Split X as X0 + 2^P521_WIDTH X1 and compute X0 + 2^(biL - 9) X1.
5348 * (We are using that 2^P521_WIDTH = 2^(512 + biL) and that
5352 * 2^P521_WIDTH carry + X0).
5355 * X0 < 2^P521_WIDTH = 2^(512 + biL) and X1 < 2^(P521_WIDTH-biL) = 2^512
5367 * At this point X is reduced to P521_WIDTH limbs. What remains is to add
5368 * the carry (that is 2^P521_WIDTH carry) and to reduce mod P521. */
5370 /* 2^P521_WIDTH carry = 2^(512 + biL) carry = 2^(biL - 9) carry mod P521.
5374 addend += (X[P521_WIDTH - 1] >> 9);
5375 X[P521_WIDTH - 1] &= P521_MASK;
5379 mbedtls_mpi_uint *addend_arr = X + P521_WIDTH;
5381 (void) mbedtls_mpi_core_add(X, X, addend_arr, P521_WIDTH);
5383 * that the result fit in P521_WIDTH limbs and there won't be any carry.) */
5391 #undef P521_WIDTH