Searched refs:memcmp (Results 176 - 200 of 1088) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_open_memstream.c71 ATF_CHECK(memcmp(buf + OFFSET, hello, sizeof(hello)-1) == 0);
/freebsd-11-stable/tools/tools/crypto/
H A Dcryptocheck.c417 if (memcmp(control_digest, test_digest, sizeof(control_digest)) != 0) {
418 if (memcmp(control_digest, test_digest, EVP_MD_size(md)) == 0)
545 if (size > 0 && memcmp(cleartext, ciphertext, size) == 0)
549 if (memcmp(cleartext, buffer, size) != 0) {
562 if (memcmp(ciphertext, buffer, size) != 0) {
575 if (memcmp(cleartext, buffer, size) != 0) {
713 if (size > 0 && memcmp(cleartext + aad_len, ciphertext + aad_len,
728 if (memcmp(ciphertext + aad_len, buffer + aad_len, size) != 0) {
736 if (memcmp(control_digest, test_digest, sizeof(control_digest)) != 0) {
737 if (memcmp(control_diges
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dregress_buffer.c184 tt_assert(!memcmp((char*)EVBUFFER_DATA(evb), "hello/1", 1));
192 tt_assert(!memcmp((char*)EVBUFFER_DATA(evb), "1", 1));
201 tt_assert(!memcmp((char*)EVBUFFER_DATA(evb), "1/hello", 7) != 0);
211 tt_assert(!memcmp(tmp + 7, buffer, sizeof(buffer)));
246 if (memcmp(evbuffer_pullup(
248 memcmp(evbuffer_pullup(
616 tt_assert(!memcmp(evbuffer_pullup(dst, strlen(data)),
848 if (memcmp(compare, expect_data, expect_len)) {
974 if (!cp || sz != 5 || memcmp(cp, "more\0\0", 6))
1625 tt_int_op(memcmp(tm
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_support_filter_bzip2.c140 if (memcmp(buffer, "BZh", 3) != 0)
152 if (memcmp(buffer + 4, "\x31\x41\x59\x26\x53\x59", 6) == 0)
154 else if (memcmp(buffer + 4, "\x17\x72\x45\x38\x50\x90", 6) == 0)
H A Darchive_read_support_format_cpio.c273 if (memcmp(p, "070707", 6) == 0) {
281 } else if (memcmp(p, "070727", 6) == 0) {
289 } else if (memcmp(p, "070701", 6) == 0) {
297 } else if (memcmp(p, "070702", 6) == 0) {
548 if (memcmp("07070", p, 5) == 0
561 if (memcmp("07070", p, 5) == 0
612 if (memcmp(header + newc_magic_offset, "070701", 6) == 0) {
615 } else if (memcmp(header + newc_magic_offset, "070702", 6) == 0) {
717 if (memcmp("070707", p, 6) == 0 && is_octal(p, odc_header_size))
719 if (memcmp("07072
[all...]
/freebsd-11-stable/lib/libc/tests/locale/
H A Dwcsnrtombs_test.c77 ATF_REQUIRE(memcmp(dstbuf, "hell", 4) == 0);
89 ATF_REQUIRE(memcmp(dstbuf, "hell", 4) == 0);
184 ATF_REQUIRE(memcmp(dstbuf, "\xA3\xC1 B ", 5) == 0);
/freebsd-11-stable/lib/libc/tests/stdio/
H A Dgetdelim_test.c95 ATF_REQUIRE(memcmp(line, apothegm, sizeof(apothegm)) == 0);
213 ATF_REQUIRE(memcmp(line, apothegm, sizeof(apothegm)) == 0);
219 ATF_REQUIRE(memcmp(line, apothegm, sizeof(apothegm)) == 0);
/freebsd-11-stable/crypto/openssl/crypto/dsa/
H A Ddsatest.c190 if ((i != j) || (memcmp(buf, out_q, i) != 0)) {
197 if ((i != j) || (memcmp(buf, out_p, i) != 0)) {
204 if ((i != j) || (memcmp(buf, out_g, i) != 0)) {
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/
H A DSocketAddress.cpp294 : 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, &in6addr_any, 16);
300 : 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, &in6addr_loopback,
314 return 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr,
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_format_cpio_odc.c152 assert(memcmp(e + 12, "000000", 6) != 0); /* ino must be != 0 */
202 assert(memcmp(e + 12, file + 12, 6) != 0); /* ino must != file ino */
203 assert(memcmp(e + 12, "000000", 6) != 0); /* ino must != 0 */
/freebsd-11-stable/tools/tools/net80211/w00t/expand/
H A Dexpand.c99 if (memcmp(bssid, p->ap, 6) != 0)
108 if (memcmp(p->mac, sa, 6) == 0)
349 (memcmp(wh->i_addr2, p->ap, 6) == 0) &&
350 (memcmp(wh->i_addr1, p->mcast, 5) == 0) &&
351 (memcmp(p->mac, wh->i_addr3, 6) == 0)) {
/freebsd-11-stable/contrib/dtc/libfdt/
H A Dfdt_ro.c67 if (memcmp(p, s, len) != 0)
88 return (strlen(p) == len) && (memcmp(p, s, len) == 0);
518 && (memcmp(val, propval, len) == 0))
556 if (memcmp(str, strlist, len+1) == 0)
612 if (length == len && memcmp(list, string, length) == 0)
/freebsd-11-stable/lib/msun/tests/
H A Dfenv_test.c169 * The memcmp() test below may be too much to ask for, since there
195 assert(memcmp(&env.__mxcsr, &FE_DFL_ENV->__mxcsr,
197 assert(memcmp(&env.__x87.__control, &FE_DFL_ENV->__x87.__control,
199 assert(memcmp(&env.__x87.__status, &FE_DFL_ENV->__x87.__status,
201 assert(memcmp(&env.__x87.__tag, &FE_DFL_ENV->__x87.__tag,
204 assert(memcmp(&env, FE_DFL_ENV, sizeof(env)) == 0);
/freebsd-11-stable/crypto/openssl/crypto/bf/
H A Dbftest.c388 if (memcmp(&(bf_cipher[n][0]), &(data[0]), 8) != 0) {
402 if (memcmp(&(bf_plain[n][0]), &(data[0]), 8) != 0) {
422 if (memcmp(&(cipher_data[n][0]), out, 8) != 0) {
436 if (memcmp(&(plain_data[n][0]), out, 8) != 0) {
455 if (memcmp(out, &(key_out[i = n - 1][0]), 8) != 0) {
470 if (memcmp(cbc_out, cbc_ok, 32) != 0) {
478 if (memcmp(cbc_in, cbc_data, strlen(cbc_data) + 1) != 0) {
494 if (memcmp(cbc_out, cfb64_ok, (int)len) != 0) {
505 if (memcmp(cbc_in, cbc_data, (int)len) != 0) {
521 if (memcmp(cbc_ou
[all...]
/freebsd-11-stable/tools/regression/net80211/tkip/
H A Dtest_tkip.c242 if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) {
259 if (memcmp(ctx->tx_ttak, t->phase1, t->phase1_len)) {
264 } else if (memcmp(ctx->tx_rc4key, t->phase2, t->phase2_len)) {
274 } else if (memcmp(mtod(m, const void *), t->encrypted, m->m_pkthdr.len)) {
290 if (memcmp(ctx->rx_ttak, t->phase1, t->phase1_len)) {
294 } else if (memcmp(ctx->rx_rc4key, t->phase2, t->phase2_len)) {
314 if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) {
/freebsd-11-stable/contrib/unbound/util/
H A Dalloc.c419 if(memcmp(ptr-8, &mem_special, sizeof(mem_special)) != 0) {
439 if(memcmp(ptr-8, &mem_special, sizeof(mem_special)) != 0) {
491 if(ptr && memcmp(ptr-8, &mem_special, sizeof(mem_special)) == 0) {
563 if(memcmp(real, lite_pre, lite_pad) != 0) {
570 if(memcmp(real+lite_pad+orig+sizeof(size_t), lite_post, lite_pad)!=0){
599 if(memcmp(real, lite_pre, lite_pad) != 0) {
606 if(memcmp(real+lite_pad+orig+sizeof(size_t), lite_post, lite_pad)!=0){
/freebsd-11-stable/tools/tools/net80211/w00t/ap/
H A Dap.c267 if (memcmp(wh->i_addr1, p->mac, 6) != 0)
327 if (memcmp(wh->i_addr1, p->mac, 6) != 0)
400 if (memcmp(wh->i_addr1, p->mac, 6) != 0)
408 if (memcmp(wh->i_addr1, p->mac, 6) == 0)
441 if (memcmp(wh->i_addr1, "\xff\xff\xff\xff\xff\xff", 6) == 0)
502 if (memcmp(wh->i_addr1, p->mac, 6) != 0)
506 if (memcmp(wh->i_addr3, p->mac, 6) != 0)
571 if (memcmp(c->mac, mac, 6) == 0)
644 if (memcmp(wh->i_addr1, p->mac, 6) != 0)
668 if (memcmp(w
[all...]
/freebsd-11-stable/tools/tools/net80211/w00t/assoc/
H A Dassoc.c238 return memcmp(wh->i_addr1, mac, 6) == 0;
243 return memcmp(wh->i_addr2, mac, 6) == 0;
248 if (memcmp(wh->i_addr1, p->mac, 6) != 0)
271 if (memcmp(wh->i_addr2, p->mac, 6) == 0) {
343 if (memcmp(wh->i_addr2, p->ap, 6) != 0)
346 if (memcmp(wh->i_addr1, p->ap, 6) != 0)
/freebsd-11-stable/crypto/openssl/crypto/rc5/
H A Drc5test.c249 if (memcmp(&(RC5cipher[n][0]), buf, 8) != 0) {
263 if (memcmp(&(RC5plain[n][0]), buf2, 8) != 0) {
290 if (memcmp(&(rc5_cbc_cipher[n][0]), buf, 8) != 0) {
305 if (memcmp(&(rc5_cbc_plain[n][0]), buf2, 8) != 0) {
340 if (memcmp(cfb_cipher, cfb_buf1, CFB_TEST_SIZE) != 0) {
353 if (memcmp(plain, cfb_buf2, CFB_TEST_SIZE) != 0) {
/freebsd-11-stable/lib/libcrypt/
H A Dcrypt-sha256.c417 if (memcmp(tests[cnt].result, sum, 32) != 0) {
432 if (memcmp(tests[cnt].result, sum, 32) != 0) {
456 if (memcmp(expected, sum, 32) != 0) {
H A Dcrypt-sha512.c450 if (memcmp(tests[cnt].result, sum, 64) != 0) {
459 if (memcmp(tests[cnt].result, sum, 64) != 0) {
479 if (memcmp(expected, sum, 64) != 0) {
/freebsd-11-stable/crypto/openssl/crypto/ocsp/
H A Docsp_vfy.c223 if (!memcmp(keyhash, tmphash, SHA_DIGEST_LENGTH))
334 if (memcmp(md, cid->issuerNameHash->data, mdlen))
337 if (memcmp(md, cid->issuerKeyHash->data, mdlen))
/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_mcg.c98 if (!memcmp(mgm->gid, zero_gid, 16)) {
106 if (!memcmp(mgm->gid, gid, 16))
143 if (!memcmp(mgm->gid, zero_gid, 16))
/freebsd-11-stable/usr.bin/bluetooth/rfcomm_sppd/
H A Drfcomm_sppd.c156 if (!doserver && memcmp(&addr, NG_HCI_BDADDR_ANY, sizeof(addr)) == 0)
250 if (memcmp(&addr, NG_HCI_BDADDR_ANY, sizeof(addr)) &&
251 memcmp(&addr, &ra.rfcomm_bdaddr, sizeof(addr))) {
/freebsd-11-stable/sbin/fsck_msdosfs/
H A Dboot.c157 if (!memcmp(&block[3], "EXFAT ", 8)) {
208 if (memcmp(fsinfo, "RRaA", 4)
209 || memcmp(fsinfo + 0x1e4, "rrAa", 4)

Completed in 302 milliseconds

1234567891011>>