qcrypto_signature_op_init

Updated: April 19, 2023

Initialize a signature

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_signature_op_init)(qcrypto_state_ctx_t *sctx,
            const qcrypto_key_ctx_t *kctx,
            const qcrypto_signature_args_t *sargs);

Arguments:

sctx
The algorithm state context object.
kctx
The key context object to use to sign (private key) or verify (public key).
sargs
The signature arguments.

Library:

libqcrypto

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.