Home GnuPG

Use single constant-time memory comparison implementation
892bc25ff74bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Use single constant-time memory comparison implementation

* src/const-time.c (ct_not_memequal): Use original 'buf_eq_const'
implementation here.
(ct_memequal): New.
* cipher/bufhelp.h (buf_eq_const): Call to 'ct_memequal'.

Cherry-pick master commit of:
1e9ddbd65c4627235611d75c3198c4ec197c9a05

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Oct 30 2023, 8:05 PM
gniibeCommitted on Nov 6 2023, 2:29 AM
Parents
rC2839aaee3e6e: cipher: Fix ElGamal decryption.
Branches
Unknown
Tags
Unknown

Event Timeline