qcrypto_signature_init()

Updated: October 26, 2022

Initialize a signature

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_signature_init(qcrypto_ctx_t *ctx,
                           qcrypto_key_t *key,
                           const qcrypto_signature_args_t *sargs)

Arguments:

ctx
The algorithm context object.
key
The private key that signs the signature or public key that verifies it.
sargs
The signature arguments.

Library:

libqcrypto

Description:

This function initializes the signature algorithm. See also qcrypto_signature_args_t.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.