7 char* s1
= "the the the";
8 char* s2
= "the cat zat";
14 res
= timingsafe_bcmp(s1
, s2
, 3);
16 res
= timingsafe_bcmp(s1
, s2
, 5);
18 res
= timingsafe_bcmp(s1
, s1
+4, 3);
21 res
= timingsafe_memcmp(s1
, s2
, 3);
23 res
= timingsafe_memcmp(s1
, s2
, 5);
25 res
= timingsafe_memcmp(s1
+8, s2
+8, 3);
27 res
= timingsafe_memcmp(s1
, s1
+4, 3);
30 timingsafe_bcmp(&undef1
, &undef2
, 8);
31 timingsafe_memcmp(&undef1
, &undef2
, 8);
35 timingsafe_bcmp(s1
, d1
, 13);
36 timingsafe_memcmp(s1
, d1
, 13);
40 timingsafe_bcmp(s1
, d1
, 10);
41 timingsafe_memcmp(s1
, d1
, 10);