Lines Matching refs:timingsafe_bcmp
3210 T_ASSERT(timingsafe_bcmp(NULL, NULL, 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
3211 T_ASSERT(timingsafe_bcmp("foo", "foo", 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
3212 T_ASSERT(timingsafe_bcmp("foo", "bar", 0) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
3215 T_ASSERT(timingsafe_bcmp("foo", "foo", strlen("foo")) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
3218 T_ASSERT(timingsafe_bcmp("foo", "bar", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
3219 T_ASSERT(timingsafe_bcmp("foo", "goo", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
3220 T_ASSERT(timingsafe_bcmp("foo", "fpo", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
3221 T_ASSERT(timingsafe_bcmp("foo", "fop", strlen("foo")) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
3228 T_ASSERT(timingsafe_bcmp(&a, &b, sizeof(a)) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
3237 T_ASSERT(timingsafe_bcmp(buf, buf, buf_size) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()
3238 T_ASSERT(timingsafe_bcmp(buf, buf + 1, buf_size - 1) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
3239 T_ASSERT(timingsafe_bcmp(buf, buf + 128, 128) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
3242 T_ASSERT(timingsafe_bcmp(buf, buf + 128, 128) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()