diff options
author | Adam Langley <agl@google.com> | 2015-01-30 04:25:29 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-07 02:58:45 +0300 |
commit | 765b66cf044b6c77e64bd43911f776832071dfd7 (patch) | |
tree | b76d245ee655a4eadb4998cdc26dd1eb3ed5f3d6 /include/openssl/evp.h | |
parent | ece3de95c642ae9cc07c644039231178bc570710 (diff) |
Add DSA support to EVP.
Sadly, it turns out that we have need of this, at least for now. The
code is taken from upstream and changed only as much as needed.
This only imports keys and doesn't know how to actually perform
operations on them for now.
Change-Id: I0db70fb938186cb7a91d03f068b386c59ed90b84
Diffstat (limited to 'include/openssl/evp.h')
-rw-r--r-- | include/openssl/evp.h | 64 |
1 files changed, 37 insertions, 27 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 58b00a53..24fd038d 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -695,35 +695,20 @@ struct evp_pkey_st { } /* extern C */ #endif -#define EVP_F_EVP_DigestSignAlgorithm 100 -#define EVP_F_EVP_DigestVerifyInitFromAlgorithm 101 -#define EVP_F_EVP_PKEY_CTX_ctrl 102 -#define EVP_F_EVP_PKEY_CTX_dup 103 -#define EVP_F_EVP_PKEY_copy_parameters 104 -#define EVP_F_EVP_PKEY_decrypt 105 -#define EVP_F_EVP_PKEY_decrypt_init 106 -#define EVP_F_EVP_PKEY_derive 107 #define EVP_F_EVP_PKEY_derive_init 108 -#define EVP_F_EVP_PKEY_derive_set_peer 109 #define EVP_F_EVP_PKEY_encrypt 110 #define EVP_F_EVP_PKEY_encrypt_init 111 #define EVP_F_EVP_PKEY_get1_DH 112 -#define EVP_F_EVP_PKEY_get1_DSA 113 #define EVP_F_EVP_PKEY_get1_EC_KEY 114 #define EVP_F_EVP_PKEY_get1_RSA 115 #define EVP_F_EVP_PKEY_keygen 116 -#define EVP_F_EVP_PKEY_keygen_init 117 -#define EVP_F_EVP_PKEY_new 118 -#define EVP_F_EVP_PKEY_set_type 119 #define EVP_F_EVP_PKEY_sign 120 #define EVP_F_EVP_PKEY_sign_init 121 #define EVP_F_EVP_PKEY_verify 122 #define EVP_F_EVP_PKEY_verify_init 123 -#define EVP_F_check_padding_md 124 #define EVP_F_d2i_AutoPrivateKey 125 #define EVP_F_d2i_PrivateKey 126 #define EVP_F_do_EC_KEY_print 127 -#define EVP_F_do_rsa_print 128 #define EVP_F_do_sigver_init 129 #define EVP_F_eckey_param2type 130 #define EVP_F_eckey_param_decode 131 @@ -755,15 +740,34 @@ struct evp_pkey_st { #define EVP_F_rsa_pub_decode 157 #define EVP_F_pkey_hmac_ctrl 158 #define EVP_F_EVP_PKEY_CTX_get0_rsa_oaep_label 159 +#define EVP_F_EVP_DigestSignAlgorithm 160 +#define EVP_F_EVP_DigestVerifyInitFromAlgorithm 161 +#define EVP_F_EVP_PKEY_CTX_ctrl 162 +#define EVP_F_EVP_PKEY_CTX_dup 163 +#define EVP_F_EVP_PKEY_copy_parameters 164 +#define EVP_F_EVP_PKEY_decrypt 165 +#define EVP_F_EVP_PKEY_decrypt_init 166 +#define EVP_F_EVP_PKEY_derive 167 +#define EVP_F_EVP_PKEY_derive_set_peer 168 +#define EVP_F_EVP_PKEY_get1_DSA 169 +#define EVP_F_EVP_PKEY_keygen_init 170 +#define EVP_F_EVP_PKEY_new 171 +#define EVP_F_EVP_PKEY_set_type 172 +#define EVP_F_check_padding_md 173 +#define EVP_F_do_dsa_print 174 +#define EVP_F_do_rsa_print 175 +#define EVP_F_dsa_param_decode 176 +#define EVP_F_dsa_priv_decode 177 +#define EVP_F_dsa_priv_encode 178 +#define EVP_F_dsa_pub_decode 179 +#define EVP_F_dsa_pub_encode 180 +#define EVP_F_dsa_sig_print 181 +#define EVP_F_old_dsa_priv_decode 182 #define EVP_R_BUFFER_TOO_SMALL 100 #define EVP_R_COMMAND_NOT_SUPPORTED 101 -#define EVP_R_CONTEXT_NOT_INITIALISED 102 -#define EVP_R_DECODE_ERROR 103 #define EVP_R_DIFFERENT_KEY_TYPES 104 #define EVP_R_DIFFERENT_PARAMETERS 105 -#define EVP_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED 106 #define EVP_R_EXPECTING_AN_EC_KEY_KEY 107 -#define EVP_R_EXPECTING_AN_RSA_KEY 108 #define EVP_R_EXPECTING_A_DH_KEY 109 #define EVP_R_EXPECTING_A_DSA_KEY 110 #define EVP_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE 111 @@ -772,10 +776,8 @@ struct evp_pkey_st { #define EVP_R_INVALID_DIGEST_TYPE 114 #define EVP_R_INVALID_KEYBITS 115 #define EVP_R_INVALID_MGF1_MD 116 -#define EVP_R_INVALID_OPERATION 117 #define EVP_R_INVALID_PADDING_MODE 118 #define EVP_R_INVALID_PSS_PARAMETERS 119 -#define EVP_R_INVALID_PSS_SALTLEN 120 #define EVP_R_INVALID_SALT_LENGTH 121 #define EVP_R_INVALID_TRAILER 122 #define EVP_R_KEYS_NOT_SET 123 @@ -790,14 +792,22 @@ struct evp_pkey_st { #define EVP_R_OPERATON_NOT_INITIALIZED 132 #define EVP_R_UNKNOWN_DIGEST 133 #define EVP_R_UNKNOWN_MASK_DIGEST 134 -#define EVP_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM 135 -#define EVP_R_UNKNOWN_PUBLIC_KEY_TYPE 136 -#define EVP_R_UNKNOWN_SIGNATURE_ALGORITHM 137 #define EVP_R_UNSUPPORTED_ALGORITHM 138 #define EVP_R_UNSUPPORTED_MASK_ALGORITHM 139 #define EVP_R_UNSUPPORTED_MASK_PARAMETER 140 -#define EVP_R_UNSUPPORTED_PUBLIC_KEY_TYPE 141 -#define EVP_R_UNSUPPORTED_SIGNATURE_TYPE 142 -#define EVP_R_WRONG_PUBLIC_KEY_TYPE 143 +#define EVP_R_EXPECTING_AN_RSA_KEY 141 +#define EVP_R_INVALID_OPERATION 142 +#define EVP_R_DECODE_ERROR 143 +#define EVP_R_INVALID_PSS_SALTLEN 144 +#define EVP_R_UNKNOWN_PUBLIC_KEY_TYPE 145 +#define EVP_R_CONTEXT_NOT_INITIALISED 146 +#define EVP_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED 147 +#define EVP_R_WRONG_PUBLIC_KEY_TYPE 148 +#define EVP_R_UNKNOWN_SIGNATURE_ALGORITHM 149 +#define EVP_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM 150 +#define EVP_R_BN_DECODE_ERROR 151 +#define EVP_R_PARAMETER_ENCODING_ERROR 152 +#define EVP_R_UNSUPPORTED_PUBLIC_KEY_TYPE 153 +#define EVP_R_UNSUPPORTED_SIGNATURE_TYPE 154 #endif /* OPENSSL_HEADER_EVP_H */ |