qcrypto_signature_init()

Updated: April 19, 2023

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.