From c927df3fa19a2afda7bbacefbb366f7382b5269b Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 12 Apr 2006 10:20:47 +0000 Subject: Initial DSA EVP_PKEY_METHOD. Fixup some error codes. --- crypto/dsa/dsa.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crypto/dsa/dsa.h') diff --git a/crypto/dsa/dsa.h b/crypto/dsa/dsa.h index 502b4896a3..97efb92bd9 100644 --- a/crypto/dsa/dsa.h +++ b/crypto/dsa/dsa.h @@ -245,6 +245,12 @@ int DSA_print_fp(FILE *bp, const DSA *x, int off); DH *DSA_dup_DH(const DSA *r); #endif +#define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL) + +#define EVP_PKEY_CTRL_DSA_PARAMGEN_BITS (EVP_PKEY_ALG_CTRL + 1) + /* BEGIN ERROR CODES */ /* The following lines are auto generated by the script mkerr.pl. Any changes * made after this point may be overwritten when the script is next run. @@ -272,6 +278,7 @@ void ERR_load_DSA_strings(void); #define DSA_F_DSA_SIG_NEW 109 #define DSA_F_DSA_VERIFY 108 #define DSA_F_I2D_DSA_SIG 111 +#define DSA_F_PKEY_DSA_CTRL 120 #define DSA_F_SIG_CB 114 /* Reason codes. */ @@ -279,6 +286,7 @@ void ERR_load_DSA_strings(void); #define DSA_R_BN_ERROR 103 #define DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 100 #define DSA_R_DECODE_ERROR 104 +#define DSA_R_INVALID_DIGEST_TYPE 106 #define DSA_R_MISSING_PARAMETERS 101 #define DSA_R_PARAMETER_ENCODING_ERROR 105 -- cgit v1.2.3