summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa.h
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2003-01-07 05:51:39 +0000
committerGeoff Thorpe <geoff@openssl.org>2003-01-07 05:51:39 +0000
commit2814c629154a2ef9f7371808738eb70c92a1d1b1 (patch)
tree3806a3b2cd04ba5fac003b962250a31e7c194ddf /crypto/rsa/rsa.h
parent876e96fdbf0030c48f9d1ceb7a0c371375dd71d6 (diff)
This is the first step in allowing RSA_METHODs to implement their own key
generation. This prototype matches the new API function RSA_generate_key_ex(), though both may be subject to change during development before 0.9.8.
Diffstat (limited to 'crypto/rsa/rsa.h')
-rw-r--r--crypto/rsa/rsa.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/rsa/rsa.h b/crypto/rsa/rsa.h
index cdf514c009..b005b4b0b3 100644
--- a/crypto/rsa/rsa.h
+++ b/crypto/rsa/rsa.h
@@ -114,7 +114,11 @@ typedef struct rsa_meth_st
int (*rsa_verify)(int dtype,
const unsigned char *m, unsigned int m_length,
unsigned char *sigbuf, unsigned int siglen, const RSA *rsa);
-
+/* If this callback is NULL, the builtin software RSA key-gen will be used. This
+ * is for behavioural compatibility whilst the code gets rewired, but one day
+ * it would be nice to assume there are no such things as "builtin software"
+ * implementations. */
+ int (*rsa_keygen)(RSA *rsa, int bits, unsigned long e, BN_GENCB *cb);
} RSA_METHOD;
struct rsa_st