![]() | ![]() | ||||||||||||||
| |||||||||||||||
| DSA_set_method(3)
NAMEDSA_set_default_method, DSA_get_default_method, DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
SYNOPSIS#include <openssl/dsa.h> void DSA_set_default_method(DSA_METHOD *meth); DSA_METHOD *DSA_get_default_method(void); DSA_METHOD *DSA_set_method(DSA *dsa, DSA_METHOD *meth); DSA *DSA_new_method(DSA_METHOD *meth); DSA_METHOD *DSA_OpenSSL(void);
DESCRIPTIONA DSA_METHOD specifies the functions that OpenSSL uses for DSA operations. By modifying the method, alternative implementations such as hardware accelerators may be used.
Initially, the default is to use the OpenSSL internal implementation.
THE DSA_METHOD STRUCTUREstruct { const char *name;
DSA_SIG *(*dsa_do_sign)(const unsigned char *dgst, int dlen,
DSA *dsa);
int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
BIGNUM **rp);
int (*dsa_do_verify)(const unsigned char *dgst, int dgst_len,
DSA_SIG *sig, DSA *dsa);
int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1,
BIGNUM *a2, BIGNUM *p2, BIGNUM *m,
BN_CTX *ctx, BN_MONT_CTX *in_mont);
int (*bn_mod_exp)(DSA *dsa, BIGNUM *r, BIGNUM *a,
const BIGNUM *p, const BIGNUM *m,
BN_CTX *ctx, BN_MONT_CTX *m_ctx);
int (*init)(DSA *DSA);
int (*finish)(DSA *DSA);
int flags; char *app_data; } DSA_METHOD;
RETURN VALUES
SEE ALSO
HISTORY
| ||||||||||||||