libgcrypt/tests (ChangeLog basic.c keygen.c)
cvs user werner
cvs@cvs.gnupg.org
Wed, 19 Mar 2003 12:58:05 +0100
Date: Wednesday, March 19, 2003 @ 12:57:55
Author: werner
Path: /cvs/gnupg/libgcrypt/tests
Modified: ChangeLog basic.c keygen.c
* 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.
-----------+
ChangeLog | 6 ++++++
basic.c | 3 +--
keygen.c | 16 +++++++++++-----
3 files changed, 18 insertions(+), 7 deletions(-)