Lines Matching refs:bytes
120 const size_t bytes = limbs * sizeof(mbedtls_mpi_uint);
131 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes);
134 memcpy(rX.p, rA.p, bytes);
136 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes);
139 memcpy(rX.p, rB.p, bytes);
141 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes);
144 if (memcmp(rA.p, rB.p, bytes) == 0) {
146 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes);
149 memcpy(rX.p, rA.p, bytes);
151 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes);
156 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes);
159 memcpy(rX.p, rA.p, bytes);
161 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes);
164 memcpy(rX.p, rB.p, bytes);
166 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes);
258 size_t bytes = limbs * sizeof(*X_raw);
302 memcpy(x.p, a.p, bytes);
307 memcpy(x.p, b.p, bytes);
311 if (memcmp(a.p, b.p, bytes) == 0) {
319 memcpy(x.p, a.p, bytes);
359 size_t bytes = limbs * sizeof(*X_raw);
370 memcpy(x.p, a.p, bytes);
409 size_t bytes = limbs * sizeof(*X_raw);
420 memcpy(x.p, a.p, bytes);
461 size_t bytes = limbs * sizeof(*X_raw);
506 memcpy(x.p, a.p, bytes);
511 memcpy(x.p, b.p, bytes);
515 if (memcmp(a.p, b.p, bytes) == 0) {
523 memcpy(x.p, a.p, bytes);
682 /* Get number of bytes without leading zeroes */