qcrypto_rng_op_bytes

Extract a value from the random number generator (RNG) algorithm

Synopsis:

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

Arguments:

sctx
The algorithm state context object.
buf
The buffer to store the random bytes in.
size
The buffer size.

Library:

libqcrypto

Description:

This function is used to extract a random-sized value from the RNG algorithm.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.