summaryrefslogtreecommitdiffstats
path: root/crypto/dsa/dsa.h
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-01-30 02:23:03 +0000
committerBodo Möller <bodo@openssl.org>2000-01-30 02:23:03 +0000
commita87030a1edf0e4c6d601895f810b2d0da84ee10a (patch)
tree398075a9540e68b2dc417a80ac83fe13e5253958 /crypto/dsa/dsa.h
parent15701211b57b63f1f91a9c3781ea91c019b1dc1d (diff)
Make DSA_generate_parameters, and fix a couple of bug
(including another problem in the s3_srvr.c state machine).
Diffstat (limited to 'crypto/dsa/dsa.h')
-rw-r--r--crypto/dsa/dsa.h7
1 files changed, 5 insertions, 2 deletions
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