qcrypto_rng_seed()

QNX SDP8.0QNX OS System Security GuideAPIConfiguration

Seed an RNG

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_rng_seed(qcrypto_ctx_t *ctx,
                     const uint8_t *seed,
                     size_t size)

Arguments:

ctx
The algorithm context object.
seed
The seed data.
size
The seed data size.

Library:

libqcrypto

Description:

This function seeds the PRNG (pseudorandom number generator) with an initial value.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.

Page updated: