Improve constant-time buffer compare

Authored by jukivili on Mar 22 2018, 8:42 PM.

Description

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>

Details

Committed
jukiviliMar 22 2018, 8:42 PM
Parents
rC92fd86e9956e: doc: Clarify the value range of the use-rsa-e parameter.
Branches
Unknown
Tags
Unknown