Home
last modified time | relevance | path

Searched refs:test_buf (Results 1 – 8 of 8) sorted by relevance

/freebsd-12-stable/crypto/openssh/regress/unittests/sshbuf/
Dtest_sshbuf_fixed.c26 const u_char test_buf[] = "\x01\x12\x34\x56\x78\x00\x00\x00\x05hello"; variable
38 p1 = sshbuf_from(test_buf, sizeof(test_buf)); in sshbuf_fixed()
46 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf); in sshbuf_fixed()
51 p1 = sshbuf_from(test_buf, sizeof(test_buf) - 1); in sshbuf_fixed()
53 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf); in sshbuf_fixed()
55 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 1); in sshbuf_fixed()
58 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 5); in sshbuf_fixed()
73 ASSERT_INT_EQ(sshbuf_put(p1, test_buf, sizeof(test_buf) - 1), 0); in sshbuf_fixed()
109 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(test_buf) - 1); in sshbuf_fixed()
111 ASSERT_SIZE_T_EQ(sshbuf_len(p2), sizeof(test_buf) + 4 - 1); in sshbuf_fixed()
[all …]
/freebsd-12-stable/tests/sys/fs/fusefs/
Dio.cc260 void *test_buf, *control_buf; in do_read() local
263 test_buf = malloc(size); in do_read()
264 ASSERT_NE(nullptr, test_buf) << strerror(errno); in do_read()
269 r = pread(m_test_fd, test_buf, size, offs); in do_read()
276 compare(test_buf, control_buf, offs, size); in do_read()
279 free(test_buf); in do_read()
/freebsd-12-stable/crypto/openssl/crypto/ui/
Dui_lib.c123 const char *test_buf) in general_allocate_string() argument
133 s->_.string_data.test_buf = test_buf; in general_allocate_string()
227 const char *test_buf) in UI_add_verify_string() argument
231 maxsize, test_buf); in UI_add_verify_string()
236 const char *test_buf) in UI_dup_verify_string() argument
250 maxsize, test_buf); in UI_dup_verify_string()
838 return uis->_.string_data.test_buf; in UI_get0_test_string()
Dui_local.h81 const char *test_buf; /* Input: test string to verify against */ member
/freebsd-12-stable/lib/libsbuf/tests/
Dsbuf_string_test.c46 check_buffers_equal(const void *sb_buf, const void *test_buf, size_t len) in check_buffers_equal() argument
49 if (memcmp(sb_buf, test_buf, len) != 0) { in check_buffers_equal()
53 hexdump(test_buf, len, NULL, 0); in check_buffers_equal()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/BPF/
DBPFISelDAGToDAG.cpp374 } test_buf; in getConstantFieldValue() local
377 support::endian::write16le(test_buf.c, test_val); in getConstantFieldValue()
379 support::endian::write16be(test_buf.c, test_val); in getConstantFieldValue()
381 bool endian_match = test_buf.s == test_val; in getConstantFieldValue()
/freebsd-12-stable/crypto/openssl/include/openssl/
Dui.h95 const char *test_buf);
98 const char *test_buf);
/freebsd-12-stable/crypto/openssl/doc/man3/
DUI_new.pod31 const char *test_buf);
34 const char *test_buf);