diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-01-15 02:01:55 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-01-15 02:01:55 +0000 |
commit | 0e4aa0d2d2807e0cbeac29b65d2b9061daed8941 (patch) | |
tree | cec435e2a3ce007d0b1a7be92c4cf12cdc4bd1a5 /crypto/dsa/dsa.h | |
parent | 08cb96bba2831a8fc3dbda697ab65d64bb05a371 (diff) | |
download | openssl-0e4aa0d2d2807e0cbeac29b65d2b9061daed8941.tar.gz |
As with RSA, which was modified recently, this change makes it possible to
override key-generation implementations by placing handlers in the methods
for DSA and DH. Also, parameter generation for DSA and DH is possible by
another new handler for each method.
Diffstat (limited to 'crypto/dsa/dsa.h')
-rw-r--r-- | crypto/dsa/dsa.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/dsa/dsa.h b/crypto/dsa/dsa.h index 7a126e486b..6ba79b01df 100644 --- a/crypto/dsa/dsa.h +++ b/crypto/dsa/dsa.h @@ -110,6 +110,13 @@ typedef struct dsa_method { int (*finish)(DSA *dsa); int flags; char *app_data; + /* If this is non-NULL, it is used to generate DSA parameters */ + int (*dsa_paramgen)(DSA *dsa, int bits, + unsigned char *seed, int seed_len, + int *counter_ret, unsigned long *h_ret, + BN_GENCB *cb); + /* If this is non-NULL, it is used to generate DSA keys */ + int (*dsa_keygen)(DSA *dsa); } DSA_METHOD; struct dsa_st |