Add a test for a custom digest created via EVP_MD_meth_new()
authorMatt Caswell <matt@openssl.org>
Wed, 29 Dec 2021 16:39:11 +0000 (16:39 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 10 Jan 2022 16:47:34 +0000 (16:47 +0000)
commitafaa7755aa3e577348e1267d5ad34da695292917
tree6df5a497656254766277d0f36d3495a022025e11
parentfa2029250e38947ebd68a9b5861bedaa2384d85d
Add a test for a custom digest created via EVP_MD_meth_new()

We check that the init and cleanup functions for the custom method are
called as expected.

Based on an original reproducer by Dmitry Belyavsky from issue #17149.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/17255)

(cherry picked from commit fbbe7202eba9fba243c18513f4f0316dafb3496d)
test/evp_extra_test.c