Lines Matching refs:n
4 void fill_arrays(unsigned char *a, unsigned char *b, unsigned char *r1, unsigned char *r2, size_t n)
6 for (size_t i = 0; i < n; i++) {
18 size_t n = (size_t) len;
20 TEST_CALLOC(a, n + 1);
21 TEST_CALLOC(b, n + 1);
22 TEST_CALLOC(r1, n + 1);
23 TEST_CALLOC(r2, n + 1);
26 fill_arrays(a, b, r1, r2, n);
27 for (size_t i = 0; i < n; i++) {
30 mbedtls_xor(r2, a, b, n);
31 TEST_MEMORY_COMPARE(r1, n, r2, n);
34 fill_arrays(a, b, r1, r2, n);
35 for (size_t i = 0; i < n; i++) {
38 mbedtls_xor(r2, r2, b, n);
39 TEST_MEMORY_COMPARE(r1, n, r2, n);
42 fill_arrays(a, b, r1, r2, n);
43 for (size_t i = 0; i < n; i++) {
46 mbedtls_xor(r2, a, r2, n);
47 TEST_MEMORY_COMPARE(r1, n, r2, n);
50 fill_arrays(a, b, r1, r2, n);
51 for (size_t i = 0; i < n; i++) {
54 mbedtls_xor(r2, a, a, n);
55 TEST_MEMORY_COMPARE(r1, n, r2, n);
58 fill_arrays(a, b, r1, r2, n);
59 for (size_t i = 0; i < n; i++) {
62 mbedtls_xor(r2, r2, r2, n);
63 TEST_MEMORY_COMPARE(r1, n, r2, n);
68 fill_arrays(a, b, r1, r2, n + 1);
70 for (size_t j = 0; j < n; j++) {
73 mbedtls_xor(r2 + r_off, a + a_off, b + b_off, n);
74 TEST_MEMORY_COMPARE(r1 + r_off, n, r2 + r_off, n);