Searched refs:ciL (Results 1 – 8 of 8) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | bignum_core.h | 77 #define ciL (sizeof(mbedtls_mpi_uint)) /** chars in limb */ macro 78 #define biL (ciL << 3) /** bits in limb */ 79 #define biH (ciL << 2) /** half limb size */ 86 #define CHARS_TO_LIMBS(i) ((i) / ciL + ((i) % ciL != 0)) 89 (((X)[(i) / ciL] >> (((i) % ciL) * 8)) & 0xff)
|
| H A 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 …]
|
| H A 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()
|
| H A D | bignum.c | 179 #define mbedtls_mpi_zeroize_and_free(v, n) mbedtls_zeroize_and_free(v, ciL * (n)) 185 #define mbedtls_mpi_zeroize(v, n) mbedtls_platform_zeroize(v, ciL * (n)) 244 p = mempool_alloc(mbedtls_mpi_mempool, nblimbs * ciL); in mbedtls_mpi_grow() 247 memset(p, 0, nblimbs * ciL); in mbedtls_mpi_grow() 249 p = (mbedtls_mpi_uint *) mbedtls_calloc(nblimbs, ciL); in mbedtls_mpi_grow() 255 memcpy(p, X->p, X->n * ciL); in mbedtls_mpi_grow() 305 p = mempool_alloc(mbedtls_mpi_mempool, i * ciL); in mbedtls_mpi_shrink() 308 memset(p, 0, i * ciL); in mbedtls_mpi_shrink() 310 if ((p = (mbedtls_mpi_uint *) mbedtls_calloc(i, ciL)) == NULL) in mbedtls_mpi_shrink() 315 memcpy(p, X->p, i * ciL); in mbedtls_mpi_shrink() [all …]
|
| H A 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 …]
|
| H A D | bignum_mod.c | 176 mbedtls_mpi_uint *T = mbedtls_calloc(N->limbs * 2 + 1, ciL); in mbedtls_mpi_mod_mul()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | bignum.c | 15 #define ciL (sizeof(mbedtls_mpi_uint)) /* chars in limb */ macro 16 #define biL (ciL << 3) /* bits in limb */
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | mpi_desc.c | 25 #define ciL (sizeof(mbedtls_mpi_uint)) /* chars in limb */ macro 26 #define biL (ciL << 3) /* bits in limb */
|