* keygen.c (check_rsa_keys): Don't expect an exponent when asking
authorWerner Koch <wk@gnupg.org>
Wed, 19 Mar 2003 11:57:55 +0000 (11:57 +0000)
committerWerner Koch <wk@gnupg.org>
Wed, 19 Mar 2003 11:57:55 +0000 (11:57 +0000)
commitf9a9b38ec6f96606e91c7e3fadc28914434a10b7
tree50190df4eff98b8dc0b0dd533a93104f75c4e883
parentf2de550aab23e78fd72a74307fef30ef2db3f2c1
* keygen.c (check_rsa_keys): Don't expect an exponent when asking
for e=0.
(check_generated_rsa_key): Just print exponent if EXPECTED_E is 0.

* primegen.c (gen_prime): New args EXTRA_CHECK and EXTRA_CHECK_ARG
to allow for a user callback.  Changed all callers.
(_gcry_generate_secret_prime)
(_gcry_generate_public_prime): Ditto, pass them to gen_prime.
* rsa.c (check_exponent): New.
(generate): Use a callback to ensure that a given exponent is
actually generated.
cipher/ChangeLog
cipher/primegen.c
cipher/rsa.c
tests/ChangeLog
tests/basic.c
tests/keygen.c