X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=providers%2Fimplementations%2Fciphers%2Fcipher_aes_ocb.c;h=2f30b7ffdf384e443a6e8e871adb17c26ef52874;hb=7cc355c2e4e081dca3c6c345a75a2ab16800c807;hp=84ba062d6b7e3cd110c2ab84e579162328b6807a;hpb=7cc5e0d283800c757e46d1476273d271120aa38d;p=openssl.git diff --git a/providers/implementations/ciphers/cipher_aes_ocb.c b/providers/implementations/ciphers/cipher_aes_ocb.c index 84ba062d6b..2f30b7ffdf 100644 --- a/providers/implementations/ciphers/cipher_aes_ocb.c +++ b/providers/implementations/ciphers/cipher_aes_ocb.c @@ -30,15 +30,15 @@ PROV_CIPHER_FUNC(int, ocb_cipher, (PROV_AES_OCB_CTX *ctx, const unsigned char *in, unsigned char *out, size_t nextblock)); /* forward declarations */ -static OSSL_OP_cipher_encrypt_init_fn aes_ocb_einit; -static OSSL_OP_cipher_decrypt_init_fn aes_ocb_dinit; -static OSSL_OP_cipher_update_fn aes_ocb_block_update; -static OSSL_OP_cipher_final_fn aes_ocb_block_final; -static OSSL_OP_cipher_cipher_fn aes_ocb_cipher; -static OSSL_OP_cipher_freectx_fn aes_ocb_freectx; -static OSSL_OP_cipher_dupctx_fn aes_ocb_dupctx; -static OSSL_OP_cipher_get_ctx_params_fn aes_ocb_get_ctx_params; -static OSSL_OP_cipher_set_ctx_params_fn aes_ocb_set_ctx_params; +static OSSL_FUNC_cipher_encrypt_init_fn aes_ocb_einit; +static OSSL_FUNC_cipher_decrypt_init_fn aes_ocb_dinit; +static OSSL_FUNC_cipher_update_fn aes_ocb_block_update; +static OSSL_FUNC_cipher_final_fn aes_ocb_block_final; +static OSSL_FUNC_cipher_cipher_fn aes_ocb_cipher; +static OSSL_FUNC_cipher_freectx_fn aes_ocb_freectx; +static OSSL_FUNC_cipher_dupctx_fn aes_ocb_dupctx; +static OSSL_FUNC_cipher_get_ctx_params_fn aes_ocb_get_ctx_params; +static OSSL_FUNC_cipher_set_ctx_params_fn aes_ocb_set_ctx_params; /* * The following methods could be moved into PROV_AES_OCB_HW if @@ -305,6 +305,7 @@ static void aes_ocb_freectx(void *vctx) if (ctx != NULL) { aes_generic_ocb_cleanup(ctx); + cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); OPENSSL_clear_free(ctx, sizeof(*ctx)); } } @@ -470,13 +471,13 @@ static int aes_ocb_cipher(void *vctx, unsigned char *out, size_t *outl, } #define IMPLEMENT_cipher(mode, UCMODE, flags, kbits, blkbits, ivbits) \ -static OSSL_OP_cipher_get_params_fn aes_##kbits##_##mode##_get_params; \ +static OSSL_FUNC_cipher_get_params_fn aes_##kbits##_##mode##_get_params; \ static int aes_##kbits##_##mode##_get_params(OSSL_PARAM params[]) \ { \ return cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \ flags, kbits, blkbits, ivbits); \ } \ -static OSSL_OP_cipher_newctx_fn aes_##kbits##_##mode##_newctx; \ +static OSSL_FUNC_cipher_newctx_fn aes_##kbits##_##mode##_newctx; \ static void *aes_##kbits##_##mode##_newctx(void *provctx) \ { \ return aes_##mode##_newctx(provctx, kbits, blkbits, ivbits, \