qcrypto_keypair_init_from_mem()

Updated: April 19, 2023

Initialize PKI key generation using parameters in memory

Synopsis:

#include <qcrypto/qcrypto_keys.h>
int qcrypto_keypair_init_from_mem(qcrypto_ctx_t *ctx,
                                  const uint8_t *params,
                                  size_t size,
                                  qcrypto_key_format_t fmt)

Arguments:

ctx
The algorithm context object.
params
The key parameters buffer.
size
The size of params.
fmt
The encoding format of params (see qcrypto_key_format_t).

Library:

libqcrypto

Description:

This function initializes a PKI key generation algorithm using key parameters stored in memory.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.