]> git.codecow.com Git - Monocypher.git/commit
Test constant-timeness of comparison functions
authorCuleX <cculex@gmail.com>
Sun, 6 Aug 2017 16:58:53 +0000 (18:58 +0200)
committerCuleX <cculex@gmail.com>
Sun, 6 Aug 2017 17:05:02 +0000 (19:05 +0200)
commitc01e440f3e1eb84b5c78a2e68d43177307c60e18
tree825e8eb97e90dc79edc6ebff3ba1926143142431
parentc6acc98621d9aa2387a109620803f57d11b48728
Test constant-timeness of comparison functions

clock() in time.h is specified in C89 and should thus be portable.
COMPARISON_DIFF_THRESHOLD was chosen based on observed values, which
reached a maximum at 3.
tests/self.c