Home
last modified time | relevance | path

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

/lib/crypto/
Dblake2s-selftest.c570 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_selftest()
585 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_selftest()
608 if (memcmp(&state1, &state2, sizeof(state1))) { in blake2s_selftest()
623 if (memcmp(&state1, &state2, sizeof(state1))) { in blake2s_selftest()
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()
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/
Dtest_user_copy.c136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
149 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
171 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
219 ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), in test_user_copy_init()
266 ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE), in test_user_copy_init()
Dstring.c933 #undef memcmp
934 __visible int memcmp(const void *cs, const void *ct, size_t count) in memcmp() function
959 EXPORT_SYMBOL(memcmp);
976 return memcmp(a, b, len); in bcmp()
1022 if (!memcmp(s1, s2, l2)) in strstr()
1047 if (!memcmp(s1, s2, l2)) in strnstr()
Ddecompress.c77 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method()
Dtest-string_helpers.c19 if (q_real == q_test && !memcmp(out_test, out_real, q_test)) in test_string_check_buf()
492 if (!memcmp(res, exp, strlen(exp) + 1)) in test_string_get_size_check()
554 if (memcmp(dst, strings_upper[i].out, len)) { in test_string_upper_lower()
572 if (memcmp(dst, strings_lower[i].out, len)) { in test_string_upper_lower()
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()
Dearlycpio.c119 !memcmp(p, path, mypathsize)) { in find_cpio_data()
Dtest_meminit.c256 fail |= (bool)memcmp(buf, buf_copy, size); in do_kmem_cache_size()
302 fail = memcmp(buf_contents, buf, size); in do_kmem_cache_rcu_persistent()
Dbuildid.c147 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) in build_id_parse()
Ddigsig.c169 if (!m || len != hlen || memcmp(m, h, hlen)) in digsig_verify_rsa()
Dtest_printf.c87 if (memcmp(test_buffer, expect, written)) { in do_test()
126 if (memcmp(p, expect, elen+1)) { in __test()
Dnlattr.c816 d = memcmp(nla_data(nla), data, size); in nla_memcmp()
839 d = memcmp(nla_data(nla), str, len); in nla_strcmp()
Dtest_bitmap.c118 if (memcmp(exp_arr, arr, len*sizeof(*arr))) { in __check_eq_u32_array()
Dtest_rhashtable.c621 } else if (obj && memcmp(&obj->value, &key, sizeof(key))) { in thread_lookup_test()
Dobjagg.c920 memcmp(ptr, arg->key, ht->p.key_len); in objagg_hints_obj_cmp()
Dtest_objagg.c189 memcmp(world->next_root_buf, root->buf, sizeof(root->buf))) { in test_nodelta_obj_get()
Dtest_firmware.c674 memcmp(firmware->data, test_data, sizeof(test_data)) != 0) { in trigger_request_platform_store()
/lib/raid6/test/
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/
Dxz_private.h43 # define memeq(a, b, size) (memcmp(a, b, size) == 0)
/lib/reed_solomon/
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/zlib_deflate/
Ddeflate.c709 if (memcmp((char *)s->window + match, in check_match()