Updated: October 28, 2024 |
Sign a signature digest
#include <qcrypto/qcrypto.h>
int qcrypto_signature_sign_nodgst(qcrypto_ctx_t *ctx, const uint8_t *digest, size_t size, uint8_t *sig, size_t *sigsize)
This function signs the input digest directly. It is used if the digest was calculated externally by another means and replaces qcrypto_signature_update() and qcrypto_signature_sign().
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.