qcrypto_signature_sign_nodgst()

Updated: October 26, 2022

Sign a signature digest

Synopsis:

#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)

Arguments:

ctx
The algorithm context object.
digest
The input digest.
size
The input digest size.
sig
The signature buffer.
sigsize
The combined size of the signature buffer and the retrieved signature.

Library:

libqcrypto

Description:

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().

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.