]> git.feebdaed.xyz Git - 0xmirror/openssl.git/commit
Add EVP digest context serialization
authorSimo Sorce <simo@redhat.com>
Thu, 20 Nov 2025 15:25:47 +0000 (10:25 -0500)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 12 Dec 2025 08:08:33 +0000 (09:08 +0100)
commitc1f66c1ec33763de0d5e94e66039238729ef9c4b
tree58592f46a3487ffeaeb6d491521023d2799a344c
parentba4970afb5b60f022126b7fb3ee3c44cb9ceac8c
Add EVP digest context serialization

This commit introduces two new functions, EVP_MD_CTX_serialize and
EVP_MD_CTX_deserialize, to the EVP digest API.

These functions allow an application to save the state of a digest
context (EVP_MD_CTX) and restore it later. This is useful for
checkpointing long-running computations, enabling them to be paused
and resumed without starting over.

The implementation adds the OSSL_FUNC_DIGEST_SERIALIZE and
OSSL_FUNC_DIGEST_DESERIALIZE dispatch functions for providers to
supply this functionality.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28837)
crypto/err/openssl.txt
crypto/evp/digest.c
crypto/evp/evp_err.c
include/crypto/evp.h
include/crypto/evperr.h
include/openssl/core_dispatch.h
include/openssl/evp.h
include/openssl/evperr.h
util/libcrypto.num