Home GnuPG

kdf: Extend original Balloon to other digest algos.

Description

kdf: Extend original Balloon to other digest algos.

* cipher/kdf.c (struct balloon_thread_data): Use pointer to md_spec.
(prng_aes_ctr_init): Select relevant cipher to match BLKLEN.
Use other half of digest for IV if not original Balloon.
(balloon_open): Support other digest algos.
(balloon_final): Check the error code in compute.
  • GnuPG-bug-id: T5817
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Feb 8 2022, 2:41 AM
Parents
rC08ab32228ad2: kdf: Add experimental Balloon KDF.
Branches
Unknown
Tags
Unknown
Tasks
T5817: libgcrypt: Add Balloon KDF