qcrypto_digest_op_final

Finalize a digest object

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_digest_op_final)(qcrypto_state_ctx_t *sctx,
            uint8_t *digest,
            size_t *size);

Arguments:

sctx
The algorithm state context object.
digest
The digest buffer.
size
The combined size of the digest buffer and retrieved digest.

Library:

libqcrypto

Description:

This function finalizes the state of a digest.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.