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:38:45 +0000 (16:38 +0000)
commitfbbe7202eba9fba243c18513f4f0316dafb3496d
tree4ddd0cdad671a92739a25d9d328bf2a2cce10072
parent357bccc8ba64ec8a5f587b04b5d6b6ca9e8dcbdc
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)
test/evp_extra_test.c