qcrypto_keygen_request()

Updated: April 19, 2023

Request a key from the QNX cryptography library

Synopsis:

#include <qcrypto/qcrypto_keys.h>
int qcrypto_keygen_request(const char *name,
                           const char *tag,
                           unsigned flags,
                           qcrypto_ctx_t **ctx)

Arguments:

name
The algorithm name (for example, ec).
tag
The tag value that identifies the plugin in the qcrypto library configuration file to retrieve the algorithm from.
flags
Reserved for future use.
ctx
A context pointer that is filled with the algorithm context on success.

Library:

libqcrypto

Description:

This function is used to request a specific key algorithm from the qcrypto library.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.