Searched refs:timingsafe_bcmp (Results 1 – 4 of 4) sorted by relevance
| /xnu-10002.1.13/osfmk/kern/ |
| H A D | memset_s.c | 69 timingsafe_bcmp(const void *b1, const void *b2, size_t n) in timingsafe_bcmp() function
|
| /xnu-10002.1.13/osfmk/tests/ |
| H A D | kernel_tests.c | 3212 T_ASSERT(timingsafe_bcmp(NULL, NULL, 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test() 3213 T_ASSERT(timingsafe_bcmp("foo", "foo", 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test() 3214 T_ASSERT(timingsafe_bcmp("foo", "bar", 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test() 3217 T_ASSERT(timingsafe_bcmp("foo", "foo", strlen("foo")) == 0, NULL); in ts_kernel_timingsafe_bcmp_test() 3220 T_ASSERT(timingsafe_bcmp("foo", "bar", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test() 3221 T_ASSERT(timingsafe_bcmp("foo", "goo", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test() 3222 T_ASSERT(timingsafe_bcmp("foo", "fpo", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test() 3223 T_ASSERT(timingsafe_bcmp("foo", "fop", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test() 3230 T_ASSERT(timingsafe_bcmp(&a, &b, sizeof(a)) == 1, NULL); in ts_kernel_timingsafe_bcmp_test() 3239 T_ASSERT(timingsafe_bcmp(buf, buf, buf_size) == 0, NULL); in ts_kernel_timingsafe_bcmp_test() [all …]
|
| /xnu-10002.1.13/osfmk/libsa/ |
| H A D | string.h | 171 extern int timingsafe_bcmp(const void *b1 __sized_by(n), const void *b2 __sized_by(n), size_t n);
|
| /xnu-10002.1.13/bsd/skywalk/nexus/ |
| H A D | nexus.c | 977 nxb1->nxb_key == NULL || timingsafe_bcmp(nxb1->nxb_key, nxb0->nxb_key, in nxb_is_equal()
|