| /freebsd-14.2/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-14.2/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-14.2/crypto/openssl/test/ |
| H A D | packettest.c | 243 char buf1[10], buf2[10]; in test_PACKET_strndup() local 248 memset(buf1, 'x', 10); in test_PACKET_strndup() 270 char buf1[10], buf2[10]; in test_PACKET_contains_zero_byte() local 273 memset(buf1, 'x', 10); in test_PACKET_contains_zero_byte() 350 unsigned char buf1[BUF_LEN]; in test_PACKET_get_length_prefixed_1() local 356 buf1[0] = (unsigned char)len; in test_PACKET_get_length_prefixed_1() 358 buf1[i] = (i * 2) & 0xff; in test_PACKET_get_length_prefixed_1() 375 unsigned char buf1[1024]; in test_PACKET_get_length_prefixed_2() local 399 unsigned char buf1[1024]; in test_PACKET_get_length_prefixed_3() local 406 buf1[i] = (i * 2) & 0xff; in test_PACKET_get_length_prefixed_3() [all …]
|
| /freebsd-14.2/tests/sys/geom/class/eli/ |
| H A D | unaligned_io.c | 51 char *buf1, *buf2; in main() local 77 buf1 = mmap(NULL, bufsz, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, in main() 79 if (buf1 == MAP_FAILED) in main() 86 arc4random_buf(buf1, bufsz); in main() 87 n = pwrite(fd, buf1, bufsz, 0); in main() 103 n = pread(fd, buf1, iosz, 0); in main() 110 if (memcmp(buf1, buf2 + i, iosz) != 0) in main() 118 arc4random_buf(buf1, bufsz); in main() 120 n = pwrite(fd, buf1 + i, iosz, 0); in main() 126 if (memcmp(buf1 + i, buf2, iosz) != 0) in main()
|
| /freebsd-14.2/contrib/ntp/sntp/libevent/test/ |
| H A D | regress_buffer.c | 464 tt_assert(buf1); in test_evbuffer_remove_buffer_with_empty_front() 479 if (buf1) in test_evbuffer_remove_buffer_with_empty_front() 491 tt_assert(buf1); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty() 535 if (buf1) in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty() 2114 buf1 = NULL; in test_evbuffer_add_reference() 2119 if (buf1) in test_evbuffer_add_reference() 2179 buf1 = NULL; in test_evbuffer_multicast() 2188 if (buf1) in test_evbuffer_multicast() 2224 if (buf1) in test_evbuffer_multicast_drain() 2311 if (buf1) in test_evbuffer_prepend() [all …]
|
| /freebsd-14.2/contrib/libevent/test/ |
| H A D | regress_buffer.c | 464 tt_assert(buf1); in test_evbuffer_remove_buffer_with_empty_front() 479 if (buf1) in test_evbuffer_remove_buffer_with_empty_front() 491 tt_assert(buf1); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty() 535 if (buf1) in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty() 2114 buf1 = NULL; in test_evbuffer_add_reference() 2119 if (buf1) in test_evbuffer_add_reference() 2179 buf1 = NULL; in test_evbuffer_multicast() 2188 if (buf1) in test_evbuffer_multicast() 2224 if (buf1) in test_evbuffer_multicast_drain() 2311 if (buf1) in test_evbuffer_prepend() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/ |
| H A D | tmpfile_001_pos.c | 43 char buf1[BSZ], buf2[BSZ] = {0}; in main() local 51 fill_random(buf1, BSZ); in main() 57 if (write(fd, buf1, BSZ) < 0) in main() 63 if (memcmp(buf1, buf2, BSZ) != 0) in main() 68 if (fsetxattr(fd, "user.test", buf1, BSZ, 0) < 0) in main() 74 if (memcmp(buf1, buf2, BSZ) != 0) in main()
|
| /freebsd-14.2/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-14.2/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_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()
|
| 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()
|
| /freebsd-14.2/usr.bin/locate/bigram/ |
| H A D | locate.bigram.c | 57 u_char buf1[LOCATE_PATH_MAX] = " "; variable 65 u_char *oldpath = buf1, *path = buf2; in main() 91 if (path == buf1) { in main() 93 oldpath = buf1; in main() 95 path = buf1; in main()
|
| /freebsd-14.2/contrib/xz/src/liblzma/common/ |
| H A D | memcmplen.h | 53 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, in lzma_memcmplen() argument 70 const uint64_t x = read64ne(buf1 + len) - read64ne(buf2 + len); in lzma_memcmplen() 106 _mm_loadu_si128((const __m128i *)(buf1 + len)), in lzma_memcmplen() 123 uint32_t x = read32ne(buf1 + len) - read32ne(buf2 + len); in lzma_memcmplen() 145 uint32_t x = read32ne(buf1 + len) ^ read32ne(buf2 + len); in lzma_memcmplen() 166 while (len < limit && buf1[len] == buf2[len]) in lzma_memcmplen()
|
| /freebsd-14.2/usr.bin/cmp/ |
| H A D | link.c | 45 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-14.2/bin/stty/ |
| H A D | print.c | 56 char buf1[100], buf2[100]; in print() local 198 (void)snprintf(buf1, sizeof(buf1), "%s = %s;", in print() 200 bput(buf1); in print() 209 (void)snprintf(buf1 + cnt * 8, sizeof(buf1) - cnt * 8, in print() 215 (void)printf("%s\n", buf1); in print() 220 (void)printf("%s\n", buf1); in print()
|
| /freebsd-14.2/lib/libc/iconv/ |
| H A D | citrus_esdb.c | 196 char buf1[PATH_MAX], buf2[PATH_MAX], path[PATH_MAX]; in _citrus_esdb_open() local 200 realname = _lookup_alias(path, esname, buf1, sizeof(buf1), in _citrus_esdb_open() 317 char buf1[PATH_MAX]; in _citrus_esdb_get_list() local 319 snprintf(buf1, sizeof(buf1), "%.*s", in _citrus_esdb_get_list() 322 if ((p = strchr(buf1, '/')) != NULL) in _citrus_esdb_get_list() 323 memmove(buf1, p + 1, strlen(p) - 1); in _citrus_esdb_get_list() 324 if ((p = strstr(buf1, ".esdb")) != NULL) in _citrus_esdb_get_list() 326 snprintf(buf, sizeof(buf), "%s/%.*s", buf1, in _citrus_esdb_get_list()
|
| /freebsd-14.2/sbin/ccdconfig/ |
| H A D | ccdconfig.c | 171 char buf1[BUFSIZ]; in do_single() local 188 sprintf(buf1, "ccd%d", ccd); in do_single() 189 gctl_ro_param(grq, "geom", -1, buf1); in do_single() 258 sprintf(buf1, "provider%d", i); in do_single() 262 gctl_ro_param(grq, buf1, -1, cp); in do_single() 264 buf1[0] = '\0'; in do_single() 265 gctl_add_param(grq, "output", sizeof(buf1), buf1, in do_single() 270 printf("%s", buf1); in do_single()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | get_diff.c | 47 char buf1[DEV_BSIZE], buf2[DEV_BSIZE]; in main() local 67 while ((bytes = pread(fd1, buf1, DEV_BSIZE, off)) > 0) { in main() 76 buf2[0] = ~buf1[0]; in main() 82 if (memcmp(buf1, buf2, bytes) == 0) { in main()
|
| /freebsd-14.2/usr.bin/locate/code/ |
| H A D | locate.code.c | 103 u_char buf1[LOCATE_PATH_MAX] = " "; variable 153 oldpath = buf1; in main() 223 if (path == buf1) { /* swap pointers */ in main() 225 oldpath = buf1; in main() 227 path = buf1; in main()
|
| /freebsd-14.2/sbin/gbde/ |
| H A D | gbde.c | 192 char buf1[BUFSIZ + SHA512_DIGEST_LENGTH]; in setup_passphrase() local 202 klen = read(kfd, buf1, BUFSIZ); in setup_passphrase() 208 g_bde_hash_pass(sc, buf1, klen); in setup_passphrase() 209 memcpy(buf1, sc->sha2, SHA512_DIGEST_LENGTH); in setup_passphrase() 217 strcpy(buf1 + bpos, input); in setup_passphrase() 219 g_bde_hash_pass(sc, buf1, strlen(buf1 + bpos) + bpos); in setup_passphrase() 226 buf1 + bpos, sizeof buf1 - bpos, in setup_passphrase() 238 if (strcmp(buf1 + bpos, buf2 + bpos)) { in setup_passphrase() 243 if (strlen(buf1 + bpos) < 3) { in setup_passphrase() 249 g_bde_hash_pass(sc, buf1, strlen(buf1 + bpos) + bpos); in setup_passphrase()
|
| /freebsd-14.2/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()
|