| Updated: October 28, 2024 | 
Sign a signature using a single operation
#include <qcrypto/qcrypto.h>
int qcrypto_signature_sign_oneshot(qcrypto_ctx_t *ctx,
                                   const uint8_t *data,
                                   size_t size,
                                   uint8_t *sig,
                                   size_t *sigsize)
This function combines qcrypto_signature_update() and qcrypto_signature_sign() in one operation for cases where the data size is known in advance, it is small enough that it can be passed in a single operation, or both.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.