From a87030a1edf0e4c6d601895f810b2d0da84ee10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Sun, 30 Jan 2000 02:23:03 +0000 Subject: Make DSA_generate_parameters, and fix a couple of bug (including another problem in the s3_srvr.c state machine). --- crypto/dsa/dsa.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crypto/dsa/dsa.h') diff --git a/crypto/dsa/dsa.h b/crypto/dsa/dsa.h index 3da104b6dd..e59c7d293f 100644 --- a/crypto/dsa/dsa.h +++ b/crypto/dsa/dsa.h @@ -197,7 +197,11 @@ int DSAparams_print_fp(FILE *fp, DSA *x); int DSA_print_fp(FILE *bp, DSA *x, int off); #endif -int DSA_is_prime(BIGNUM *q,void (*callback)(),void *cb_arg); +#define DSS_prime_checks 50 +/* Primality test according to FIPS PUB 186[-1], Appendix 2.1: + * 50 rounds of Rabin-Miller */ +#define DSA_is_prime(n, callback, cb_arg) \ + BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg) #ifndef NO_DH /* Convert DSA structure (key or just parameters) into DH structure @@ -218,7 +222,6 @@ DH *DSA_dup_DH(DSA *r); #define DSA_F_DSAPARAMS_PRINT_FP 101 #define DSA_F_DSA_DO_SIGN 112 #define DSA_F_DSA_DO_VERIFY 113 -#define DSA_F_DSA_IS_PRIME 102 #define DSA_F_DSA_NEW 103 #define DSA_F_DSA_PRINT 104 #define DSA_F_DSA_PRINT_FP 105 -- cgit v1.2.3