Searched refs:ciL (Results 1 – 9 of 9) sorted by relevance
/mbedtls-latest/library/ |
D | bignum_core.c | 215 memset(X, 0, X_limbs * ciL); in mbedtls_mpi_core_read_le() 218 size_t offset = ((i % ciL) << 3); in mbedtls_mpi_core_read_le() 219 X[i / ciL] |= ((mbedtls_mpi_uint) input[i]) << offset; in mbedtls_mpi_core_read_le() 243 memset(X, 0, X_limbs * ciL); in mbedtls_mpi_core_read_be() 247 size_t overhead = (X_limbs * ciL) - input_length; in mbedtls_mpi_core_read_be() 262 size_t stored_bytes = A_limbs * ciL; in mbedtls_mpi_core_write_le() 300 stored_bytes = X_limbs * ciL; in mbedtls_mpi_core_write_be() 340 memset(X, 0, limbs * ciL); in mbedtls_mpi_core_shift_r() 503 memset(X, 0, (A_limbs + B_limbs) * ciL); in mbedtls_mpi_core_mul() 535 memset(T, 0, (2 * AN_limbs + 1) * ciL); in mbedtls_mpi_core_montmul() [all …]
|
D | bignum_core.h | 79 #define ciL (sizeof(mbedtls_mpi_uint)) /** chars in limb */ macro 80 #define biL (ciL << 3) /** bits in limb */ 81 #define biH (ciL << 2) /** half limb size */ 88 #define CHARS_TO_LIMBS(i) ((i) / ciL + ((i) % ciL != 0)) 91 (((X)[(i) / ciL] >> (((i) % ciL) * 8)) & 0xff)
|
D | bignum.c | 176 #define mbedtls_mpi_zeroize_and_free(v, n) mbedtls_zeroize_and_free(v, ciL * (n)) 218 if ((p = (mbedtls_mpi_uint *) mbedtls_calloc(nblimbs, ciL)) == NULL) { in mbedtls_mpi_grow() 223 memcpy(p, X->p, X->n * ciL); in mbedtls_mpi_grow() 266 if ((p = (mbedtls_mpi_uint *) mbedtls_calloc(i, ciL)) == NULL) { in mbedtls_mpi_shrink() 271 memcpy(p, X->p, i * ciL); in mbedtls_mpi_shrink() 290 memset(X->p, 0, limbs * ciL); in mbedtls_mpi_resize_clear() 319 memset(X->p, 0, X->n * ciL); in mbedtls_mpi_copy() 336 memset(X->p + i, 0, (X->n - i) * ciL); in mbedtls_mpi_copy() 339 memcpy(X->p, Y->p, i * ciL); in mbedtls_mpi_copy() 382 memset(X->p, 0, X->n * ciL); in mbedtls_mpi_lset() [all …]
|
D | bignum_mod_raw.c | 237 if ((T = (mbedtls_mpi_uint *) mbedtls_calloc(t_limbs, ciL)) == NULL) { in mbedtls_mpi_mod_raw_to_mont_rep() 244 mbedtls_zeroize_and_free(T, t_limbs * ciL); in mbedtls_mpi_mod_raw_to_mont_rep() 254 if ((T = (mbedtls_mpi_uint *) mbedtls_calloc(t_limbs, ciL)) == NULL) { in mbedtls_mpi_mod_raw_from_mont_rep() 260 mbedtls_zeroize_and_free(T, t_limbs * ciL); in mbedtls_mpi_mod_raw_from_mont_rep()
|
D | ecp_curves_new.c | 5425 mbedtls_mpi_uint *carry = mbedtls_calloc(P255_WIDTH, ciL); in mbedtls_ecp_mod_p255_raw() 5527 M = mbedtls_calloc(M_limbs, ciL); in mbedtls_ecp_mod_p448_raw() 5533 Q = mbedtls_calloc(Q_limbs, ciL); in mbedtls_ecp_mod_p448_raw() 5541 memset(M, 0, (M_limbs * ciL)); in mbedtls_ecp_mod_p448_raw() 5544 memcpy(M, X + P448_WIDTH, ((M_limbs - 1) * ciL)); in mbedtls_ecp_mod_p448_raw() 5547 memset(X + P448_WIDTH, 0, ((M_limbs - 1) * ciL)); in mbedtls_ecp_mod_p448_raw() 5567 memset(M + P224_WIDTH_MAX, 0, ((M_limbs - P224_WIDTH_MAX) * ciL)); in mbedtls_ecp_mod_p448_raw() 5574 memmove((char *) M + P224_SIZE, M, P224_SIZE + ciL); in mbedtls_ecp_mod_p448_raw() 5587 memset(M, 0, (M_limbs * ciL)); in mbedtls_ecp_mod_p448_raw() 5588 memcpy(M, X + P448_WIDTH, ((M_limbs - 1) * ciL)); in mbedtls_ecp_mod_p448_raw() [all …]
|
D | bignum_mod.c | 176 mbedtls_mpi_uint *T = mbedtls_calloc(N->limbs * 2 + 1, ciL); in mbedtls_mpi_mod_mul()
|
/mbedtls-latest/tests/suites/ |
D | test_suite_bignum_random.function | 177 TEST_MEMORY_COMPARE(R_core, limbs * ciL, 178 R_legacy.p, R_legacy.n * ciL); 240 TEST_MEMORY_COMPARE(R_core, N.limbs * ciL, 241 R_mod_raw, N.limbs * ciL); 244 TEST_MEMORY_COMPARE(R_core, N.limbs * ciL, 245 R_mod_digits, N.limbs * ciL);
|
D | test_suite_ecp.function | 1756 limbs * ciL, 1759 TEST_MEMORY_COMPARE(bufx, ciL, one, ciL); 1761 memset(A, 0, limbs * ciL); 1762 TEST_MEMORY_COMPARE(&bufx[1], (limbs - 1) * ciL, A, (limbs - 1) * ciL); 1800 bytes = p_A_limbs * ciL; 1852 bytes = limbs * ciL;
|
D | test_suite_bignum_core.function | 557 TEST_MEMORY_COMPARE(X, limbs * ciL, Y, limbs * ciL); 577 TEST_MEMORY_COMPARE(X, limbs * ciL, Y, limbs * ciL); 1098 for (size_t i = wanted_bytes; i < X_limbs * ciL; i++) {
|