EVP_MD_CTX_new - dynamic allocation

Tomas Mraz tomas at openssl.org
Thu May 18 11:33:46 UTC 2023


No, this is no longer possible. The contexts are completely internal
structures and thus it is not possible to declare them on stack.

Tomas Mraz, OpenSSL

On Thu, 2023-05-18 at 16:09 +0530, sushma s wrote:
> In OpenSSL 1.0, we could stack allocate EVP_MD_CTX. 
> 
> Now this is replaced with 'EVP_MD_CTX_new' which needs to be
> dynamically allocated. 
> 
> Are there any alternatives to 'EVP_MD_CTX_new' which enables us to
> continue to do a stack allocation for the digest routines. 
> 
> NOTE: we have some constraints wrt dynamic allocation in our work. 
> 
> Thanks.

-- 
Tomáš Mráz, OpenSSL



More information about the openssl-users mailing list