Updated: October 28, 2024 |
Initialize, update, and finalize a digest
#include <qcrypto/qcrypto.h>
int qcrypto_digest(qcrypto_ctx_t *ctx, const uint8_t *data, size_t size, uint8_t *digest, size_t *dsize)
This function performs qcrypto_digest_init(), qcrypto_digest_update(), and qcrypto_digest_final() in a single operation.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.