telehash / telehash-c

telehash tools library in c
MIT License
122 stars 31 forks source link

Refactor memcmp to use a constant time algorithm #60

Closed jbdatko closed 9 years ago

jbdatko commented 9 years ago

The stdlib memcmp is vulnerable to timing attacks because it fails at first difference. This PR defines util_ct_memcmp which is the same signature as memcmp but will not leak timing.

It also adds a make TAGS to be more friendly to emacs users.

quartzjer commented 9 years ago

:+1: