qcrypto_keygen_op_get_pubkey

Updated: April 19, 2023

Retrieve a public key from a private key

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_keygen_op_get_pubkey)(qcrypto_state_ctx_t *sctx,
            qcrypto_key_ctx_t *privkctx,
            qcrypto_key_ctx_t *pubkctx);

Arguments:

sctx
The algorithm state context object.
privkctx
The private key context object.
pubkctx
The public key context object (optional).

Library:

libqcrypto

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.