-/* $OpenBSD: e_aes.c,v 1.46 2022/08/04 08:06:48 jsing Exp $ */
+/* $OpenBSD: e_aes.c,v 1.47 2022/09/06 06:38:26 jsing Exp $ */
/* ====================================================================
* Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved.
*
return 1;
}
-#define aes_xts_cleanup NULL
-
#define XTS_FLAGS \
( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV | \
EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT | EVP_CIPH_CUSTOM_COPY )
.flags = XTS_FLAGS | EVP_CIPH_XTS_MODE,
.init = aesni_xts_init_key,
.do_cipher = aes_xts_cipher,
- .cleanup = aes_xts_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_XTS_CTX),
.ctrl = aes_xts_ctrl,
};
.flags = XTS_FLAGS | EVP_CIPH_XTS_MODE,
.init = aes_xts_init_key,
.do_cipher = aes_xts_cipher,
- .cleanup = aes_xts_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_XTS_CTX),
.ctrl = aes_xts_ctrl,
};
.flags = XTS_FLAGS | EVP_CIPH_XTS_MODE,
.init = aesni_xts_init_key,
.do_cipher = aes_xts_cipher,
- .cleanup = aes_xts_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_XTS_CTX),
.ctrl = aes_xts_ctrl,
};
.flags = XTS_FLAGS | EVP_CIPH_XTS_MODE,
.init = aes_xts_init_key,
.do_cipher = aes_xts_cipher,
- .cleanup = aes_xts_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_XTS_CTX),
.ctrl = aes_xts_ctrl,
};
}
-#define aes_ccm_cleanup NULL
-
-
#ifdef AESNI_CAPABLE
static const EVP_CIPHER aesni_128_ccm = {
.nid = NID_aes_128_ccm,
.flags = CUSTOM_FLAGS | EVP_CIPH_CCM_MODE,
.init = aesni_ccm_init_key,
.do_cipher = aes_ccm_cipher,
- .cleanup = aes_ccm_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_CCM_CTX),
.ctrl = aes_ccm_ctrl,
};
.flags = CUSTOM_FLAGS | EVP_CIPH_CCM_MODE,
.init = aes_ccm_init_key,
.do_cipher = aes_ccm_cipher,
- .cleanup = aes_ccm_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_CCM_CTX),
.ctrl = aes_ccm_ctrl,
};
.flags = CUSTOM_FLAGS | EVP_CIPH_CCM_MODE,
.init = aesni_ccm_init_key,
.do_cipher = aes_ccm_cipher,
- .cleanup = aes_ccm_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_CCM_CTX),
.ctrl = aes_ccm_ctrl,
};
.flags = CUSTOM_FLAGS | EVP_CIPH_CCM_MODE,
.init = aes_ccm_init_key,
.do_cipher = aes_ccm_cipher,
- .cleanup = aes_ccm_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_CCM_CTX),
.ctrl = aes_ccm_ctrl,
};
.flags = CUSTOM_FLAGS | EVP_CIPH_CCM_MODE,
.init = aesni_ccm_init_key,
.do_cipher = aes_ccm_cipher,
- .cleanup = aes_ccm_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_CCM_CTX),
.ctrl = aes_ccm_ctrl,
};
.flags = CUSTOM_FLAGS | EVP_CIPH_CCM_MODE,
.init = aes_ccm_init_key,
.do_cipher = aes_ccm_cipher,
- .cleanup = aes_ccm_cleanup,
+ .cleanup = NULL,
.ctx_size = sizeof(EVP_AES_CCM_CTX),
.ctrl = aes_ccm_ctrl,
};