Home GnuPG

random: Add finalizer for rndjent.

Description

random: Add finalizer for rndjent.

* random/rand-internal.h (_gcry_rndjent_fini): New.
* random/rndjent.c (_gcry_rndjent_fini): New.
* random/rndlinux.c (_gcry_rndlinux_gather_random): Call the finalizer
when GCRYCTL_CLOSE_RANDOM_DEVICE.
  • GnuPG-bug-id: T3731
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Dec 19 2018, 2:28 AM
Parents
rC876f7280e860: secmem: Prepare for easier debugging.
Branches
Unknown
Tags
Unknown
Tasks
T3731: gcry_pk_genkey() segfaults for ecdsa 384