Lines Matching refs:timingsafe_bcmp
2636 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()
2664 T_ASSERT(timingsafe_bcmp(buf, buf + 1, buf_size - 1) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
2665 T_ASSERT(timingsafe_bcmp(buf, buf + 128, 128) == 1, NULL); in ts_kernel_timingsafe_bcmp_test()
2668 T_ASSERT(timingsafe_bcmp(buf, buf + 128, 128) == 0, NULL); in ts_kernel_timingsafe_bcmp_test()