Improve constant-time buffer compare
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 22 Mar 2018 19:42:22 +0000 (21:42 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 22 Mar 2018 19:42:22 +0000 (21:42 +0200)
commita1127dbbada4302abf09eec90fbaceca87bfcdf0
tree427ff9ad122ec165cf7ff5c0e5b5d24b8a5bdd9c
parent92fd86e9956ef3fea51d72495fd0da09522e57a1
Improve constant-time buffer compare

* cipher/bufhelp.h (buf_eq_const): Rewrite logic.
--

New implementation for constant-time buffer comparing that
avoids generating conditional code in comparison loop.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/bufhelp.h