qcrypto_keypair_init_from_file()

Updated: April 19, 2023

Initialize PKI key generation using parameters in a file

Synopsis:

#include <qcrypto/qcrypto_keys.h>
int qcrypto_keypair_init_from_file(qcrypto_ctx_t *ctx,
                                   const char *params_file,
                                   qcrypto_key_format_t fmt)

Arguments:

ctx
The algorithm context object.
params_file
The key parameters filename.
fmt
The file's encoding format (see qcrypto_key_format_t).

Library:

libqcrypto

Description:

This function initializes a PKI key generation algorithm using key parameters from a file.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.