qcrypto_rng_init()

Updated: April 19, 2023

Initialize an RNG algorithm

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_rng_init(qcrypto_ctx_t *ctx,
                     const qcrypto_rng_args_t *rargs)

Arguments:

ctx
The algorithm context object.
rargs
The RNG arguments.

Library:

libqcrypto

Description:

See also qcrypto_rng_args_t.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.