| /freebsd-13.1/sys/contrib/libsodium/test/default/ |
| H A D | codecs.c | 7 unsigned char buf1[1000]; in main() local 51 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main() 58 if (sodium_hex2bin(buf1, sizeof buf1, hex, 13U, ":", in main() 65 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main() 71 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main() 78 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main() 128 memset(buf1, '*', sizeof buf1); in main() 131 buf1[bin_len] = 0; in main() 135 memset(buf1, '*', sizeof buf1); in main() 138 buf1[bin_len] = 0; in main() [all …]
|
| H A D | sodium_utils.c | 22 randombytes_buf(buf1, sizeof buf1); in main() 24 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); in main() 26 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); in main() 27 sodium_memzero(buf1, sizeof buf1 / 2); in main() 28 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); in main() 31 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); in main() 74 memset(buf1, 0, sizeof buf1); in main() 75 if (sodium_is_zero(buf1, sizeof buf1) != 1) { in main() 79 buf1[i]++; in main() 80 if (sodium_is_zero(buf1, sizeof buf1) != 0) { in main() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/string/ |
| H A D | t_strcmp.c | 27 char buf1[64]; in ATF_TC_BODY() local 81 memcpy(&buf1[a1], tab[t].val1, in ATF_TC_BODY() 84 ret = f(&buf0[a0], &buf1[a1]); in ATF_TC_BODY() 92 &buf0[a0], &buf1[a1], ret); in ATF_TC_BODY() 108 char buf1[10] = "xxx"; in ATF_TC_BODY() local 111 ATF_CHECK(strcmp(buf1, buf1) == 0); in ATF_TC_BODY() 118 ATF_CHECK(strcmp(buf1 + 0, buf2 + 0) < 0); in ATF_TC_BODY() 119 ATF_CHECK(strcmp(buf1 + 1, buf2 + 1) < 0); in ATF_TC_BODY() 120 ATF_CHECK(strcmp(buf1 + 2, buf2 + 2) < 0); in ATF_TC_BODY() 123 ATF_CHECK(strcmp(buf2 + 0, buf1 + 0) > 0); in ATF_TC_BODY() [all …]
|
| H A D | t_strcpy.c | 27 char buf1[64]; in ATF_TC_BODY() local 90 memcpy(&buf1[a1], tab[t].val, tab[t].len + 1); in ATF_TC_BODY() 91 ret = f(&buf0[a0], &buf1[a1]); in ATF_TC_BODY() 107 if (memcmp(&buf0[a0], &buf1[a1], in ATF_TC_BODY()
|
| H A D | t_strcat.c | 27 char buf1[64]; in ATF_TC_BODY() local 93 memcpy(&buf1[a1], tab[t1].val, in ATF_TC_BODY() 96 ret = f(&buf0[a0], &buf1[a1]); in ATF_TC_BODY() 112 &buf1[a1], in ATF_TC_BODY()
|
| /freebsd-13.1/contrib/bearssl/src/hash/ |
| H A D | ghash_pwr8.c | 123 const unsigned char *buf1, *buf2; in br_ghash_pwr8() local 134 buf1 = data; in br_ghash_pwr8() 149 buf2 = buf1 + (num4 << 6); in br_ghash_pwr8() 255 lxvw4x(52, %[cc0], %[buf1]) in br_ghash_pwr8() 256 lxvw4x(53, %[cc1], %[buf1]) in br_ghash_pwr8() 257 lxvw4x(54, %[cc2], %[buf1]) in br_ghash_pwr8() 258 lxvw4x(55, %[cc3], %[buf1]) in br_ghash_pwr8() 263 addi(%[buf1], %[buf1], 64) in br_ghash_pwr8() 382 : [buf1] "+b" (buf1), [buf2] "+b" (buf2) in br_ghash_pwr8()
|
| H A D | ghash_pclmul.c | 235 const unsigned char *buf1, *buf2; in br_ghash_pclmul() local 247 buf1 = data; in br_ghash_pclmul() local 250 buf2 = buf1 + (num4 << 6); in br_ghash_pclmul() 304 aw0 = _mm_loadu_si128((void *)(buf1 + 0)); in br_ghash_pclmul() 305 aw1 = _mm_loadu_si128((void *)(buf1 + 16)); in br_ghash_pclmul() 306 aw2 = _mm_loadu_si128((void *)(buf1 + 32)); in br_ghash_pclmul() 307 aw3 = _mm_loadu_si128((void *)(buf1 + 48)); in br_ghash_pclmul() 312 buf1 += 64; in br_ghash_pclmul()
|
| /freebsd-13.1/contrib/ntp/sntp/libevent/test/ |
| H A D | regress_buffer.c | 1616 tt_assert(buf1); in test_evbuffer_add_reference() 1669 buf1 = NULL; in test_evbuffer_add_reference() 1674 if (buf1) in test_evbuffer_add_reference() 1692 tt_assert(buf1); in test_evbuffer_multicast() 1734 buf1 = NULL; in test_evbuffer_multicast() 1743 if (buf1) in test_evbuffer_multicast() 1760 tt_assert(buf1); in test_evbuffer_multicast_drain() 1779 if (buf1) in test_evbuffer_multicast_drain() 1794 tt_assert(buf1); in test_evbuffer_prepend() 1808 tt_assert(!memcmp(buf1->first->buffer+buf1->first->misalign, in test_evbuffer_prepend() [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/ |
| H A D | tmpfile_001_pos.c | 45 char buf1[BSZ], buf2[BSZ] = {}; in main() local 60 fill_random(buf1, BSZ); in main() 68 if (write(fd, buf1, BSZ) < 0) { in main() 80 if (memcmp(buf1, buf2, BSZ) != 0) { in main() 88 if (fsetxattr(fd, "user.test", buf1, BSZ, 0) < 0) { in main() 100 if (memcmp(buf1, buf2, BSZ) != 0) { in main()
|
| /freebsd-13.1/contrib/netbsd-tests/crypto/opencrypto/ |
| H A D | h_comp.c | 48 unsigned char buf1[10000], buf2[100000]; in main() local 64 co1.dst = buf1; in main() 65 co1.dst_len = sizeof(buf1); in main() 71 buf1[co1.dst_len - 8]++; /* modify CRC */ in main() 73 write(1, buf1, co1.dst_len); in main() 78 co2.src = buf1; in main()
|
| H A D | h_comp_zlib.c | 47 unsigned char buf1[10000], buf2[10000]; in main() local 64 co1.dst = buf1; in main() 65 co1.dst_len = sizeof(buf1); in main() 72 z.next_in = buf1; in main()
|
| H A D | h_comp_zlib_rnd.c | 49 unsigned char buf1[10000], buf2[10000]; in main() local 69 co1.dst = buf1; in main() 70 co1.dst_len = sizeof(buf1); in main() 76 z.next_in = buf1; in main()
|
| /freebsd-13.1/contrib/libevent/test/ |
| H A D | regress_buffer.c | 1863 tt_assert(buf1); in test_evbuffer_add_reference() 1916 buf1 = NULL; in test_evbuffer_add_reference() 1921 if (buf1) in test_evbuffer_add_reference() 1939 tt_assert(buf1); in test_evbuffer_multicast() 1981 buf1 = NULL; in test_evbuffer_multicast() 1990 if (buf1) in test_evbuffer_multicast() 2007 tt_assert(buf1); in test_evbuffer_multicast_drain() 2026 if (buf1) in test_evbuffer_multicast_drain() 2052 tt_assert(buf1); in test_evbuffer_prepend() 2066 tt_assert(!memcmp(buf1->first->buffer+buf1->first->misalign, in test_evbuffer_prepend() [all …]
|
| /freebsd-13.1/usr.bin/locate/bigram/ |
| H A D | locate.bigram.c | 69 u_char buf1[MAXPATHLEN] = " "; variable 77 u_char *oldpath = buf1, *path = buf2; in main() 103 if (path == buf1) { in main() 105 oldpath = buf1; in main() 107 path = buf1; in main()
|
| /freebsd-13.1/contrib/xz/src/liblzma/common/ |
| H A D | memcmplen.h | 43 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, in uint32_t() 64 const uint64_t x = read64ne(buf1 + len) - read64ne(buf2 + len); in uint32_t() 97 _mm_loadu_si128((const __m128i *)(buf1 + len)), in uint32_t() 114 uint32_t x = read32ne(buf1 + len) - read32ne(buf2 + len); in uint32_t() 136 uint32_t x = read32ne(buf1 + len) ^ read32ne(buf2 + len); in uint32_t() 157 while (len < limit && buf1[len] == buf2[len]) in uint32_t()
|
| /freebsd-13.1/usr.bin/cmp/ |
| H A D | link.c | 46 char buf1[PATH_MAX], *p1; in c_link() local 52 if ((len1 = readlink(file1, buf1, sizeof(buf1) - 1)) < 0) { in c_link() 68 buf1[len1] = '\0'; in c_link() 76 for (p1 = buf1 + skip1, p2 = buf2 + skip2; in c_link()
|
| /freebsd-13.1/bin/stty/ |
| H A D | print.c | 58 char buf1[100], buf2[100]; in print() local 199 (void)snprintf(buf1, sizeof(buf1), "%s = %s;", in print() 201 bput(buf1); in print() 210 (void)snprintf(buf1 + cnt * 8, sizeof(buf1) - cnt * 8, in print() 216 (void)printf("%s\n", buf1); in print() 221 (void)printf("%s\n", buf1); in print()
|
| /freebsd-13.1/lib/libc/iconv/ |
| H A D | citrus_esdb.c | 198 char buf1[PATH_MAX], buf2[PATH_MAX], path[PATH_MAX]; in _citrus_esdb_open() local 202 realname = _lookup_alias(path, esname, buf1, sizeof(buf1), in _citrus_esdb_open() 319 char buf1[PATH_MAX]; in _citrus_esdb_get_list() local 321 snprintf(buf1, sizeof(buf1), "%.*s", in _citrus_esdb_get_list() 324 if ((p = strchr(buf1, '/')) != NULL) in _citrus_esdb_get_list() 325 memmove(buf1, p + 1, strlen(p) - 1); in _citrus_esdb_get_list() 326 if ((p = strstr(buf1, ".esdb")) != NULL) in _citrus_esdb_get_list() 328 snprintf(buf, sizeof(buf), "%s/%.*s", buf1, in _citrus_esdb_get_list()
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/get_diff/ |
| H A D | get_diff.c | 48 char buf1[DEV_BSIZE], buf2[DEV_BSIZE]; in main() local 68 while ((bytes = pread(fd1, buf1, DEV_BSIZE, off)) > 0) { in main() 77 buf2[0] = ~buf1[0]; in main() 83 if (memcmp(buf1, buf2, bytes) == 0) { in main()
|
| /freebsd-13.1/sbin/ccdconfig/ |
| H A D | ccdconfig.c | 173 char buf1[BUFSIZ]; in do_single() local 190 sprintf(buf1, "ccd%d", ccd); in do_single() 191 gctl_ro_param(grq, "geom", -1, buf1); in do_single() 260 sprintf(buf1, "provider%d", i); in do_single() 264 gctl_ro_param(grq, buf1, -1, cp); in do_single() 266 gctl_rw_param(grq, "output", sizeof(buf1), buf1); in do_single() 270 printf("%s", buf1); in do_single()
|
| /freebsd-13.1/usr.bin/locate/code/ |
| H A D | locate.code.c | 109 u_char buf1[MAXPATHLEN] = " "; variable 168 oldpath = buf1; in main() 245 if (path == buf1) { /* swap pointers */ in main() 247 oldpath = buf1; in main() 249 path = buf1; in main()
|
| /freebsd-13.1/sbin/gbde/ |
| H A D | gbde.c | 194 char buf1[BUFSIZ + SHA512_DIGEST_LENGTH]; in setup_passphrase() local 204 klen = read(kfd, buf1, BUFSIZ); in setup_passphrase() 210 g_bde_hash_pass(sc, buf1, klen); in setup_passphrase() 211 memcpy(buf1, sc->sha2, SHA512_DIGEST_LENGTH); in setup_passphrase() 219 strcpy(buf1 + bpos, input); in setup_passphrase() 221 g_bde_hash_pass(sc, buf1, strlen(buf1 + bpos) + bpos); in setup_passphrase() 228 buf1 + bpos, sizeof buf1 - bpos, in setup_passphrase() 240 if (strcmp(buf1 + bpos, buf2 + bpos)) { in setup_passphrase() 245 if (strlen(buf1 + bpos) < 3) { in setup_passphrase() 251 g_bde_hash_pass(sc, buf1, strlen(buf1 + bpos) + bpos); in setup_passphrase()
|
| /freebsd-13.1/crypto/heimdal/lib/roken/ |
| H A D | snprintf-test.c | 42 char buf1[256], buf2[256]; in try() local 45 ret = rk_vsnprintf (buf1, sizeof(buf1), format, ap); in try() 46 if (ret >= sizeof(buf1)) in try() 51 ret = strcmp (buf1, buf2); in try() 54 format, buf1, buf2); in try()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/net/ |
| H A D | h_dns_server.c | 282 char buf1[1024], buf2[1024]; in main() local 368 name2str(p, buf1, sizeof(buf1)), in main() 373 name2str(p, buf1, sizeof(buf1))); in main()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/stdio/ |
| H A D | t_fmemopen.c | 798 char buf0[BUFSIZ], buf1[BUFSIZ]; in ATF_TC_BODY() local 805 buf1[t->n] = 0x1; in ATF_TC_BODY() 812 ATF_CHECK(fread(&buf1[0], 1, sizeof(buf1), fp) == (size_t)t->n); in ATF_TC_BODY() 815 ATF_CHECK((unsigned char)buf1[t->n] == 0x1); in ATF_TC_BODY() 888 char buf0[BUFSIZ], buf1[BUFSIZ]; in ATF_TC_BODY() local 896 buf1[t->n - len] = 0x1; in ATF_TC_BODY() 906 ATF_CHECK(fread(&buf1[0], 1, sizeof(buf1), fp) in ATF_TC_BODY() 912 buf1[t->n] = 0x1; in ATF_TC_BODY() 914 ATF_CHECK(fread(&buf1[0], 1, sizeof(buf1), fp) in ATF_TC_BODY() 917 ATF_CHECK(!memcmp(&buf0[0], &buf1[0], t->n)); in ATF_TC_BODY() [all …]
|