Home GnuPG

random: Allow DRBG_REINIT before initialization.
7cdbd6e6a3cfUnpublished

Unpublished Commit · Learn More

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

Description

random: Allow DRBG_REINIT before initialization.

* random/random-drbg.c (DRBG_DEFAULT_TYPE): New.
(_drbg_init_internal): Set the default type if no type has been set
before.
(_gcry_rngdrbg_inititialize): Pass 0 for flags to use the default.

Without this change we can't call GCRYCTL_DRBG_REINIT before
intialization.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 19 2016, 3:32 PM
Parents
rC744b030cff61: Add new private header gcrypt-testapi.h.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC7cdbd6e6a3cf: random: Allow DRBG_REINIT before initialization. (authored by Werner Koch <wk@gnupg.org>).Feb 19 2016, 3:32 PM