Lines Matching refs:buf
20 size_t OPENSSL_ia32_rdrand_bytes(unsigned char *buf, size_t len);
21 size_t OPENSSL_ia32_rdseed_bytes(unsigned char *buf, size_t len);
30 size_t OPENSSL_rndr_bytes(unsigned char *buf, size_t len);
31 size_t OPENSSL_rndrrs_bytes(unsigned char *buf, size_t len);
41 unsigned char prior[31] = {0}, buf[31] = {0}, check[7]; in sanity_check_bytes() local
50 generated = rng(buf, sizeof(buf)); in sanity_check_bytes()
51 if (generated == sizeof(buf)) in sanity_check_bytes()
62 for (j = 0; j < sizeof(buf) - 1; j++) { in sanity_check_bytes()
63 if (buf[j] == 0 && buf[j+1] == 0) { in sanity_check_bytes()
68 if (!TEST_int_eq(generated, sizeof(buf))) in sanity_check_bytes()
70 if (!TEST_false(!memcmp(prior, buf, sizeof(buf)))) in sanity_check_bytes()
74 unsigned char *tail = &buf[sizeof(buf) - sizeof(check)]; in sanity_check_bytes()
80 memcpy(prior, buf, sizeof(buf)); in sanity_check_bytes()