diff options
author | Matt Caswell <matt@openssl.org> | 2019-04-15 15:33:58 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-04-19 09:31:54 +0100 |
commit | 3a7b15e484f950d4cb4061d93839802ecb74f8e5 (patch) | |
tree | 13aec26d2440a5ce13ea60f4c28a072ff021f9ed | |
parent | dcd446f1005f5c99768965a11c10dd6c7b6aee59 (diff) |
Add forward declarations of the AES dispatch table functions
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8700)
-rw-r--r-- | providers/common/ciphers/aes.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/providers/common/ciphers/aes.c b/providers/common/ciphers/aes.c index a70facc148..1d2207a292 100644 --- a/providers/common/ciphers/aes.c +++ b/providers/common/ciphers/aes.c @@ -17,6 +17,25 @@ #include "internal/provider_algs.h" #include "ciphers_locl.h" +static OSSL_OP_cipher_encrypt_init_fn aes_einit; +static OSSL_OP_cipher_decrypt_init_fn aes_dinit; +static OSSL_OP_cipher_update_fn aes_block_update; +static OSSL_OP_cipher_final_fn aes_block_final; +static OSSL_OP_cipher_update_fn aes_stream_update; +static OSSL_OP_cipher_final_fn aes_stream_final; +static OSSL_OP_cipher_cipher_fn aes_cipher; +static OSSL_OP_cipher_freectx_fn aes_freectx; +static OSSL_OP_cipher_dupctx_fn aes_dupctx; +static OSSL_OP_cipher_key_length_fn key_length_256; +static OSSL_OP_cipher_key_length_fn key_length_192; +static OSSL_OP_cipher_key_length_fn key_length_128; +static OSSL_OP_cipher_iv_length_fn iv_length_16; +static OSSL_OP_cipher_iv_length_fn iv_length_0; +static OSSL_OP_cipher_block_size_fn block_size_16; +static OSSL_OP_cipher_block_size_fn block_size_1; +static OSSL_OP_cipher_ctx_get_params_fn aes_ctx_get_params; +static OSSL_OP_cipher_ctx_set_params_fn aes_ctx_set_params; + static int PROV_AES_KEY_generic_init(PROV_AES_KEY *ctx, const unsigned char *iv, size_t ivlen, @@ -192,6 +211,7 @@ static int aes_cipher(void *vctx, unsigned char *out, const unsigned char *in, } #define IMPLEMENT_new_params(lcmode, UCMODE) \ + static OSSL_OP_cipher_get_params_fn aes_##lcmode##_get_params; \ static int aes_##lcmode##_get_params(const OSSL_PARAM params[]) \ { \ const OSSL_PARAM *p; \ @@ -204,6 +224,7 @@ static int aes_cipher(void *vctx, unsigned char *out, const unsigned char *in, } #define IMPLEMENT_new_ctx(lcmode, UCMODE, len) \ + static OSSL_OP_cipher_newctx_fn aes_##len##_##lcmode##_newctx; \ static void *aes_##len##_##lcmode##_newctx(void) \ { \ PROV_AES_KEY *ctx = OPENSSL_zalloc(sizeof(*ctx)); \ |