qcrypto_rng_supported()

Updated: October 26, 2022

Query whether an RNG is supported

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_rng_supported(const char *name,
                          const char *tag,
                          unsigned flags)

Arguments:

name
The algorithm name (e.g., drbg-ctr-128).
tag
The tag value that identifies the plugin in the qcrypto library configuration file to check for the algorithm; or NULL, to use the default tag (__progname).
flags
Reserved for future use.

Library:

libqcrypto

Description:

This function checks whether a cryptography provider (represented by its corresponding plugin) supports the specified RNG.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.