Home GnuPG

Improve constant-time buffer compare

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

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