Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 27) sorted by relevance

12

/lib/crypto/
A Dblake2s-selftest.c570 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 Daescfb.c227 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 Dcurve25519-selftest.c1296 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 Daesgcm.c710 || 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 Dchacha20poly1305-selftest.c8911 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 Dmemcpy_kunit.c346 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 Dprintf_kunit.c100 if (memcmp(test_buffer, expect, written)) { in do_test()
140 if (memcmp(p, expect, elen+1)) { in __test()
A Dfortify_kunit.c1013 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 Dstring.c672 #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 Ddecompress.c77 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method()
A Dtest_hexdump.c141 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 Dearlycpio.c119 !memcmp(p, path, mypathsize)) { in find_cpio_data()
A Dbuildid.c191 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 Dtest_meminit.c277 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 Ddigsig.c169 if (!m || len != hlen || memcmp(m, h, hlen)) in digsig_verify_rsa()
A Dnlattr.c860 d = memcmp(nla_data(nla), data, size); in nla_memcmp()
883 d = memcmp(nla_data(nla), str, len); in nla_strcmp()
A Dtest_rhashtable.c606 } else if (obj && memcmp(&obj->value, &key, sizeof(key))) { in thread_lookup_test()
A Dtest_objagg.c189 memcmp(world->next_root_buf, root->buf, sizeof(root->buf))) { in test_nodelta_obj_get()
/lib/test_fortify/
A Dread_overflow2-memcmp.c3 memcmp(large, small, sizeof(small) + 1)
A Dread_overflow-memcmp.c3 memcmp(small, large, sizeof(small) + 1)
/lib/raid6/test/
A Dtest.c64 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks()
65 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
/lib/xz/
A Dxz_private.h48 # define memeq(a, b, size) (memcmp(a, b, size) == 0)
/lib/reed_solomon/
A Dtest_rslib.c307 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 Dhash-test-template.h455 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 Ddeflate.c713 if (memcmp((char *)s->window + match, (char *)s->window + start, length)) { in check_match()

Completed in 56 milliseconds

12