Lines Matching refs:b
202 uint8_t *a = NULL, *b = NULL;
205 TEST_CALLOC(b, size);
208 TEST_CF_SECRET(b, size);
209 int result = mbedtls_ct_memcmp(a, b, size);
211 TEST_CF_PUBLIC(b, size);
223 TEST_CF_SECRET(b, size);
224 result = mbedtls_ct_memcmp(a, b, size);
226 TEST_CF_PUBLIC(b, size);
238 mbedtls_free(b);
245 uint8_t *a = NULL, *b = NULL;
247 TEST_CALLOC(b, size + offset);
256 b[i] = a[i];
258 b[i] = (i + 1) & 0xff;
262 int reference = memcmp(a + offset, b + offset, size);
265 TEST_CF_SECRET(b, size + offset);
267 int actual = mbedtls_ct_memcmp(a + offset, b + offset, size);
270 TEST_CF_PUBLIC(b, size + offset);
282 mbedtls_free(b);
300 uint8_t *a = NULL, *b = NULL;
303 TEST_CALLOC_NONNULL(b, size);
310 b[i] = a[i];
313 b[i] ^= 1;
317 int reference = memcmp(a + skip_head, b + skip_head, size - skip_head - skip_tail);
320 TEST_CF_SECRET(b, size);
322 int actual = mbedtls_ct_memcmp_partial(a, b, size, skip_head, skip_tail);
325 TEST_CF_PUBLIC(b, size);
331 mbedtls_free(b);