/lib/crypto/ |
A D | blake2s-selftest.c | 570 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_digest_test() 585 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_digest_test() 617 if (memcmp(&state1, &state2, sizeof(state1))) { in blake2s_random_test() 632 if (memcmp(&state1, &state2, sizeof(state1))) { in blake2s_random_test()
|
A D | aescfb.c | 227 if (memcmp(buf, aescfb_tv[i].ctext, aescfb_tv[i].len)) { in libaescfb_init() 234 if (memcmp(buf, aescfb_tv[i].ptext, aescfb_tv[i].len)) { in libaescfb_init() 241 if (memcmp(buf, aescfb_tv[i].ctext, aescfb_tv[i].len)) { in libaescfb_init()
|
A D | curve25519-selftest.c | 1296 memcmp(out, curve25519_test_vectors[i].result, in curve25519_selftest() 1309 memcmp(out, out2, CURVE25519_KEY_SIZE) || in curve25519_selftest() 1310 memcmp(out, out3, CURVE25519_KEY_SIZE)) { in curve25519_selftest()
|
A D | aesgcm.c | 710 || memcmp(buf, aesgcm_tv[i].ptext, plen)) { in libaesgcm_init() 718 if (memcmp(buf, aesgcm_tv[i].ctext, plen)) { in libaesgcm_init() 726 || memcmp(buf, aesgcm_tv[i].ptext, plen)) { in libaesgcm_init()
|
A D | chacha20poly1305-selftest.c | 8911 if (memcmp(computed_output, in chacha20poly1305_selftest() 8934 if (!ret || memcmp(computed_output, in chacha20poly1305_selftest() 8955 memcmp(computed_output, in chacha20poly1305_selftest() 8978 memcmp(computed_output, chacha20poly1305_dec_vectors[i].output, in chacha20poly1305_selftest() 8996 if (memcmp(computed_output, in chacha20poly1305_selftest() 9017 memcmp(computed_output, in chacha20poly1305_selftest() 9051 if (memcmp(computed_output, input, total_len)) in chacha20poly1305_selftest()
|
/lib/tests/ |
A D | memcpy_kunit.c | 346 memcmp(large_dst, large_zero, offset), 0, in copy_large_test() 350 memcmp(&large_dst[right_zero_pos], large_zero, right_zero_size), 0, in copy_large_test() 355 memcmp(large_dst + offset, large_src, bytes), 0, in copy_large_test() 409 KUNIT_ASSERT_EQ_MSG(test, memcmp(&large_dst[d_off], large_src, bytes), 0, in inner_loop() 438 memcmp(&large_dst[src_pos], &large_src[src_orig_pos], src_size), 0, in inner_loop() 444 memcmp(&large_dst[left_zero_pos], large_zero, left_zero_size), 0, in inner_loop() 449 memcmp(&large_dst[right_zero_pos], large_zero, right_zero_size), 0, in inner_loop()
|
A D | printf_kunit.c | 100 if (memcmp(test_buffer, expect, written)) { in do_test() 140 if (memcmp(p, expect, elen+1)) { in __test()
|
A D | fortify_kunit.c | 1013 KUNIT_ASSERT_EQ(test, memcmp(one, two, one_len), 0); in fortify_test_memcmp() 1016 KUNIT_ASSERT_LT(test, memcmp(one, two, one_len + 1), 0); in fortify_test_memcmp() 1020 KUNIT_ASSERT_EQ(test, memcmp(one, two, one_len + 2), INT_MIN); in fortify_test_memcmp() 1023 KUNIT_ASSERT_EQ(test, memcmp(two, one, two_len + 2), INT_MIN); in fortify_test_memcmp()
|
/lib/ |
A D | string.c | 672 #undef memcmp 673 __visible int memcmp(const void *cs, const void *ct, size_t count) in memcmp() function 698 EXPORT_SYMBOL(memcmp); 715 return memcmp(a, b, len); in bcmp() 761 if (!memcmp(s1, s2, l2)) in strstr() 786 if (!memcmp(s1, s2, l2)) in strnstr()
|
A D | decompress.c | 77 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method()
|
A D | test_hexdump.c | 141 if (memcmp(test, real, TEST_HEXDUMP_BUF_SIZE)) { in test_hexdump() 195 a = r == e && !memcmp(test, buf, TEST_HEXDUMP_BUF_SIZE); in test_hexdump_overflow()
|
A D | earlycpio.c | 119 !memcmp(p, path, mypathsize)) { in find_cpio_data()
|
A D | buildid.c | 191 memcmp(nhdr + 1, note_name, note_name_sz) == 0 && in parse_build_id() 314 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) in __build_id_parse()
|
A D | test_meminit.c | 277 fail |= (bool)memcmp(buf, buf_copy, size); in do_kmem_cache_size() 328 fail = memcmp(buf_contents, buf, size); in do_kmem_cache_rcu_persistent()
|
A D | digsig.c | 169 if (!m || len != hlen || memcmp(m, h, hlen)) in digsig_verify_rsa()
|
A D | nlattr.c | 860 d = memcmp(nla_data(nla), data, size); in nla_memcmp() 883 d = memcmp(nla_data(nla), str, len); in nla_strcmp()
|
A D | test_rhashtable.c | 606 } else if (obj && memcmp(&obj->value, &key, sizeof(key))) { in thread_lookup_test()
|
A D | test_objagg.c | 189 memcmp(world->next_root_buf, root->buf, sizeof(root->buf))) { in test_nodelta_obj_get()
|
/lib/test_fortify/ |
A D | read_overflow2-memcmp.c | 3 memcmp(large, small, sizeof(small) + 1)
|
A D | read_overflow-memcmp.c | 3 memcmp(small, large, sizeof(small) + 1)
|
/lib/raid6/test/ |
A D | test.c | 64 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks() 65 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
|
/lib/xz/ |
A D | xz_private.h | 48 # define memeq(a, b, size) (memcmp(a, b, size) == 0)
|
/lib/reed_solomon/ |
A D | test_rslib.c | 307 if (memcmp(r, c, len * sizeof(*r))) in test_uc() 398 if (memcmp(r + dlen, corr, nroots * sizeof(*corr))) in test_bc()
|
/lib/crypto/tests/ |
A D | hash-test-template.h | 455 return memcmp(actual_hash, state->expected_hashes[i], HASH_SIZE) == 0; in hash_irq_test1_func() 526 if (memcmp(actual_hash, state->expected_hash, HASH_SIZE) != 0) in hash_irq_test2_func()
|
/lib/zlib_deflate/ |
A D | deflate.c | 713 if (memcmp((char *)s->window + match, (char *)s->window + start, length)) { in check_match()
|