diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-12 10:20:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-12 10:20:47 +0000 |
commit | c927df3fa19a2afda7bbacefbb366f7382b5269b (patch) | |
tree | 4acc885a629106c24fae58beba5ec9db078acc5b /crypto/dsa/dsa.h | |
parent | 4700aea951dcba9b1e3b724bf4d8f0c712578892 (diff) |
Initial DSA EVP_PKEY_METHOD. Fixup some error codes.
Diffstat (limited to 'crypto/dsa/dsa.h')
-rw-r--r-- | crypto/dsa/dsa.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |