Lines Matching refs:buffer
35 uint8_t buffer[2500];
53 buffer[i] = 0;
56 printf("running stat_tests on all-null buffer, expecting failure\n");
57 printf("monobit %d\n", stat_test_monobit(buffer));
58 printf("poker %d\n", stat_test_poker(buffer));
59 printf("runs %d\n", stat_test_runs(buffer));
62 buffer[i] = rand();
64 printf("monobit %d\n", stat_test_monobit(buffer));
65 printf("poker %d\n", stat_test_poker(buffer));
66 printf("runs %d\n", stat_test_runs(buffer));
69 /* set buffer to cipher output */
71 buffer[i] = 0;
75 err_check(cipher_encrypt(c, buffer, &buf_len));
77 printf("monobit %d\n", stat_test_monobit(buffer));
78 printf("poker %d\n", stat_test_poker(buffer));
79 printf("runs %d\n", stat_test_runs(buffer));
87 buffer[i] = 0;
90 err_check(cipher_encrypt(c, buffer, &buf_len));
91 if (stat_test_runs(buffer)) {