Home GnuPG

random-drbg: do not use calloc for zero ctr

Description

random-drbg: do not use calloc for zero ctr

* random/random-drbg.c (DRBG_CTR_NULL_LEN): Move to 'constants'
section.
(drbg_state_s): Remove 'ctr_null' member.
(drbg_ctr_generate): Add 'drbg_ctr_null'.
(drbg_sym_fini, drbg_sym_init): Remove 'drbg->ctr_null' usage.
  • GnuPG-bug-id: T3878
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>