qcrypto_rng_op_seed

Updated: April 19, 2023

Seed the random number generator (RNG) algorithm

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_rng_op_seed)(qcrypto_state_ctx_t *sctx,
            const uint8_t *seed,
            size_t size);

Arguments:

sctx
The algorithm state context object.
seed
The seed buffer.
size
The seed buffer size.

Library:

libqcrypto

Description:

This function seeds the RNG algorithm with an initial value.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.