Home
last modified time | relevance | path

Searched refs:timingsafe_bcmp (Results 1 – 4 of 4) sorted by relevance

/xnu-8019.80.24/osfmk/kern/
H A Dmemset_s.c69 timingsafe_bcmp(const void *b1, const void *b2, size_t n) in timingsafe_bcmp() function
/xnu-8019.80.24/osfmk/tests/
H A Dkernel_tests.c2636 T_ASSERT(timingsafe_bcmp(NULL, NULL, 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
2637 T_ASSERT(timingsafe_bcmp("foo", "foo", 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
2638 T_ASSERT(timingsafe_bcmp("foo", "bar", 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
2641 T_ASSERT(timingsafe_bcmp("foo", "foo", strlen("foo")) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
2644 T_ASSERT(timingsafe_bcmp("foo", "bar", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
2645 T_ASSERT(timingsafe_bcmp("foo", "goo", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
2646 T_ASSERT(timingsafe_bcmp("foo", "fpo", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
2647 T_ASSERT(timingsafe_bcmp("foo", "fop", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
2654 T_ASSERT(timingsafe_bcmp(&a, &b, sizeof(a)) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
2663 T_ASSERT(timingsafe_bcmp(buf, buf, buf_size) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
[all …]
/xnu-8019.80.24/osfmk/libsa/
H A Dstring.h118 extern int timingsafe_bcmp(const void *b1 __sized_by(n), const void *b2 __sized_by(n), size_t …
/xnu-8019.80.24/bsd/skywalk/nexus/
H A Dnexus.c997 nxb1->nxb_key == NULL || timingsafe_bcmp(nxb1->nxb_key, nxb0->nxb_key, in nxb_is_equal()