devcrypto_digest_op_final

Finalize a digest algorithm state

Synopsis:

#include <dev/crypto/devcrypto_plugin.h>
typedef int(* devcrypto_digest_op_final)(devcrypto_state_ctx_t *sctx,
            uint8_t *digest,
            uint32_t *size);

Arguments:

sctx
The state context.
digest
The digest buffer.
size
The size of the digest buffer and the final digest.

Library:

devcr

Returns:

EOK if successful or errno if an error occurred.