Home GnuPG

* primegen.c (gen_prime): Bail out if NBITS is less than 16.
5a6f5f2881b6Unpublished

Unpublished Commit · Learn More

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

Description

(no title)

* primegen.c (gen_prime): Bail out if NBITS is less than 16. (prime_generate_internal): Initialize prime variable to suppress compiler warning.  Check pbits, initialize qbits when passed as zero.
* primegen.c (prime_generate_internal): New arg
ALL_FACTORS. Changed all callers.
(gcry_prime_generate): Make the factors arg optional. Request
all_factors.
(gcry_prime_group_generator): New.
(gcry_prime_release_factors): New.
* global.c (_gcry_malloc): Handle the no_secure_memory option.
* gcrypt.h (gcry_prime_group_generator): New.
(gcry_prime_release_factors): New.
* prime.c (check_primes): Generate a generator and avoid printing
unless in verbose mode.

Details

Provenance
wernerAuthored on Oct 10 2003, 4:17 PM
Parents
rCecdc47fd753b: * sexp.c (sexp_sscan): Check that parenthesis are matching.
Branches
Unknown
Tags
Unknown

Event Timeline