qcrypto_digest_copy()

Updated: April 19, 2023

Copy a digest state

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_digest_copy(qcrypto_ctx_t *ctx,
                        qcrypto_ctx_t **newctx)

Arguments:

ctx
The source algorithm context object.
newctx
A pointer to the copied algorithm context object.

Library:

libqcrypto

Description:

Copies the current, non-finalized, digest context information so that the digest operation can be continued from the last update.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.