qcrypto_digest_op_copy

Updated: April 19, 2023

Copy a digest state object

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_digest_op_copy)(qcrypto_state_ctx_t *sctx,
            qcrypto_state_ctx_t *new_sctx);

Arguments:

sctx
The source algorithm state context object.
new_sctx
The destination algorithm state context object.

Library:

libqcrypto

Description:

This function copies the current, non-finalized state of a digest 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.